com.caucho.protocols.flash
Class SocketPolicyProtocol

java.lang.Object
  extended by com.caucho.network.listen.AbstractProtocol
      extended by com.caucho.server.http.AbstractHttpProtocol
          extended by com.caucho.protocols.flash.SocketPolicyProtocol
All Implemented Interfaces:
Protocol

public class SocketPolicyProtocol
extends AbstractHttpProtocol

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
 ProtocolConnection createConnection(SocketLink conn)
          Create a Request object for the new thread.
 void init()
           
 void setPolicyFile(Path path)
          Sets the flash socket policy file.
 void setSocketPolicyFile(Path path)
           
 
Methods inherited from class com.caucho.server.http.AbstractHttpProtocol
getServletSystem
 
Methods inherited from class com.caucho.network.listen.AbstractProtocol
getClassLoader, getProtocolName, setProtocolName
 
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.


init

@PostConstruct
public void init()

createConnection

public ProtocolConnection createConnection(SocketLink conn)
Description copied from class: AbstractProtocol
Create a Request object for the new thread.

Specified by:
createConnection in interface Protocol
Specified by:
createConnection in class AbstractProtocol