com.caucho.protocols.flash
Class SocketPolicyProtocol

java.lang.Object
  extended by com.caucho.server.port.Protocol
      extended by com.caucho.protocols.flash.SocketPolicyProtocol
All Implemented Interfaces:
RequestFactory

public class SocketPolicyProtocol
extends Protocol

Simple protocol that sends the contents of a specified file as soon as it is contacted. It is intended for sending flash policy files for flash.net.Sockets when the target port of the socket is < 1024.


Constructor Summary
SocketPolicyProtocol()
           
 
Method Summary
 ServerRequest createRequest(Connection conn)
          Create a Request object for the new thread.
 java.lang.String getProtocolName()
          Returns the protocol name.
 void init()
           
 void setPolicyFile(Path path)
          Sets the flash socket policy file.
 void setProtocolName(java.lang.String name)
          Sets the protocol name.
 void setSocketPolicyFile(Path path)
           
 
Methods inherited from class com.caucho.server.port.Protocol
addText, getPort, getServer, setParent, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketPolicyProtocol

public SocketPolicyProtocol()
Method Detail

setSocketPolicyFile

public void setSocketPolicyFile(Path path)

setPolicyFile

public void setPolicyFile(Path path)
Sets the flash socket policy file.


getProtocolName

public java.lang.String getProtocolName()
Returns the protocol name.

Specified by:
getProtocolName in interface RequestFactory
Overrides:
getProtocolName in class Protocol

setProtocolName

public void setProtocolName(java.lang.String name)
Sets the protocol name.

Overrides:
setProtocolName in class Protocol

init

public void init()

createRequest

public ServerRequest createRequest(Connection conn)
Description copied from class: Protocol
Create a Request object for the new thread.

Specified by:
createRequest in interface RequestFactory
Overrides:
createRequest in class Protocol