com.caucho.protocols.flash
Class SocketPolicyRequest

java.lang.Object
  extended by com.caucho.server.http.AbstractHttpRequest
      extended by com.caucho.server.http.HttpRequest
          extended by com.caucho.protocols.flash.SocketPolicyRequest
All Implemented Interfaces:
ProtocolConnection, SecurityContextProvider

public class SocketPolicyRequest
extends HttpRequest


Field Summary
 
Fields inherited from class com.caucho.server.http.HttpRequest
HTTP_0_9, HTTP_1_0, HTTP_1_1
 
Fields inherited from class com.caucho.server.http.AbstractHttpRequest
_headerCodes, _hostHeader, JSP_EXCEPTION, SHUTDOWN
 
Constructor Summary
SocketPolicyRequest(Server server, SocketLink connection, Path policy)
           
 
Method Summary
 boolean handleRequest()
          Handles a new connection.
 void init()
          Initialize the connection.
 
Methods inherited from class com.caucho.server.http.HttpRequest
checkLogin, createResponse, dbgId, findSessionIdFromConnection, finishRequest, getHeader, getHeaderBuffer, getHeaderBuffer, getHeaderBuffers, getHeaderKey, getHeaderNames, getHeaders, getHeaderSize, getHeaderValue, getHost, getMethod, getMethodBuffer, getProtocol, getProtocolBuffer, getRawInput, getUriBuffer, getUriLength, hasRequest, initAttributes, initStream, isTop, isWaitForRead, setHeader, skip, startDuplex, startRequest, toString
 
Methods inherited from class com.caucho.server.http.AbstractHttpRequest
addHeaderInt, buildInvocation, cleanup, clearRequest, clientDisconnect, finishInvocation, getAbstractHttpResponse, getAvailable, getCharacterEncoding, getCharBuffer, getConnection, getConnectionId, getContentLength, getContentType, getContentTypeBuffer, getCookies, getDateHeader, getErrorManager, getForm, getFormParser, getInputStream, getIntHeader, getInvocation, getInvocationServer, getLocale, getLocales, getLocalHost, getLocalPort, getLogBuffer, getLongContentLength, getProtocolRequestURL, getRawRead, getRawReadBuffer, getRawWrite, getReader, getReadStream, getRemoteAddr, getRemoteHost, getRemotePort, getRequestFacade, getRequestURI, getRequestURL, getResponse, getResponseFacade, getScheme, getServer, getServerName, getServerPort, getStartTime, getStream, getStream, getUserPrincipal, getWebApp, handleConnectionClose, handleResume, isCometActive, isConnectionClosed, isDuplex, isIgnoreClientDisconnect, isKeepalive, isSecure, isSuspend, isTransportSecure, isUserInRole, killKeepalive, onCloseConnection, onStartConnection, printRemoteAddr, restartServer, runAs, sendRequestError, setCharacterEncoding, setContentLength, shutdown, startInvocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.network.listen.ProtocolConnection
getProtocolRequestURL, handleResume, onCloseConnection, onStartConnection
 

Constructor Detail

SocketPolicyRequest

public SocketPolicyRequest(Server server,
                           SocketLink connection,
                           Path policy)
Method Detail

init

public void init()
Initialize the connection. At this point, the current thread is the connection thread.

Specified by:
init in interface ProtocolConnection
Overrides:
init in class AbstractHttpRequest

handleRequest

public boolean handleRequest()
                      throws java.io.IOException
Handles a new connection. The controlling TcpServer may call handleConnection again after the connection completes, so the implementation must initialize any variables for each connection.

Specified by:
handleRequest in interface ProtocolConnection
Overrides:
handleRequest in class HttpRequest
Returns:
true if the connection should stay open (keepalive)
Throws:
java.io.IOException