com.caucho.protocols.flash
Class SocketPolicyRequest

java.lang.Object
  extended by com.caucho.server.connection.AbstractHttpRequest
      extended by com.caucho.server.http.HttpRequest
          extended by com.caucho.protocols.flash.SocketPolicyRequest
All Implemented Interfaces:
SecurityContextProvider, CauchoRequest, ServerRequest, TcpServerRequest, HttpServletRequest, ServletRequest

public class SocketPolicyRequest
extends HttpRequest


Field Summary
 
Fields inherited from class com.caucho.server.connection.AbstractHttpRequest
_calendar, _cb, _conn, _expect100Continue, _hasReadStream, _headerCodes, _hostHeader, _invocation, _rawRead, _readStream, _response, _server, _sessionGroup, _tcpConn, CONTEXT_PATH, ERROR_URI, EXCEPTION, EXCEPTION_TYPE, JSP_EXCEPTION, MESSAGE, PATH_INFO, QUERY_STRING, REQUEST_URI, SERVLET_NAME, SERVLET_PATH, SHUTDOWN, STATUS_CODE
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
SocketPolicyRequest(DispatchServer server, Connection 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, dbgId, findSessionIdFromConnection, finish, getAttribute, getAttributeNames, getHeader, getHeaderBuffer, getHeaderBuffer, getHeaderBuffers, getHeaderKey, getHeaderNames, getHeaders, getHeaderSize, getHeaderValue, getHost, getMethod, getMethodBuffer, getProtocol, getProtocolBuffer, getRawInput, getUriBuffer, getUriLength, handleResume, initStream, isSecure, isTop, isWaitForRead, protocolCloseEvent, setHeader, skip, start, toString
 
Methods inherited from class com.caucho.server.connection.AbstractHttpRequest
addCloseOnExit, addHeaderInt, allowKeepalive, authenticate, cleanup, complete, connectionClose, getAuthType, getCharacterEncoding, getConnection, getContentLength, getContentType, getContentTypeBuffer, getContextPath, getCookie, getCookies, getDateHeader, getDispatchServer, getHasCookie, getInputStream, getIntHeader, getInvocation, getLoadedSession, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getLogBuffer, getLongContentLength, getMemorySession, getPageContextPath, getPagePathInfo, getPageQueryString, getPageServletPath, getPageURI, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getQueryString, getRawReadBuffer, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRemoteUser, getRequestDepth, getRequestDepth, getRequestDispatcher, getRequestedSessionId, getRequestedSessionIdNoVary, getRequestURI, getRequestURL, getResponse, getScheme, getServerName, getServerPort, getServletContext, getServletName, getServletPath, getServletResponse, getSession, getSession, getSessionCookie, getSessionGroup, getSessionManager, getStartTime, getStream, getStream, getUserPrincipal, getVaryCookie, getVaryCookies, getWebApp, isIgnoreClientDisconnect, isInitial, isKeepalive, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isResumed, isSuspended, isTimeout, isTransportSecure, isUserInRole, killKeepalive, logout, logoutUserPrincipal, printRemoteAddr, removeAttribute, restartServer, resume, runAs, setAttribute, setCharacterEncoding, setHasCookie, setInvocation, setStartTime, setVaryCookie, startConnection, startResume, suspend, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.server.port.TcpServerRequest
getConnection
 
Methods inherited from interface com.caucho.server.port.ServerRequest
startConnection
 

Constructor Detail

SocketPolicyRequest

public SocketPolicyRequest(DispatchServer server,
                           Connection 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 ServerRequest
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 ServerRequest
Overrides:
handleRequest in class HttpRequest
Returns:
true if the connection should stay open (keepalive)
Throws:
java.io.IOException