|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Connector is a component responsible receiving requests from, and returning responses to, a client application. A Connector performs the following general logic:
connector,
protocol, remoteAddr,
response, scheme,
secure, serverName,
serverPort and stream
properties MUST be set. The contentLength
and contentType properties are also generally set.
method, queryString,
requestedSessionCookie,
requestedSessionId, requestedSessionURL,
requestURI, and secure properties
MUST be set. In addition, the various addXxx
methods must be called to record the presence of cookies, headers,
and locales in the original request.
connector, request,
and stream properties MUST be set.
invoke() method of the selected Container,
passing the initialized Request and Response instances as arguments.
| Method Summary | |
Request |
createRequest()
Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container. |
Response |
createResponse()
Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container. |
Container |
getContainer()
Return the Container used for processing requests received by this Connector. |
boolean |
getEnableLookups()
Return the "enable DNS lookups" flag. |
ServerSocketFactory |
getFactory()
Return the server socket factory used by this Container. |
java.lang.String |
getInfo()
Return descriptive information about this Connector implementation. |
int |
getRedirectPort()
Return the port number to which a request should be redirected if it comes in on a non-SSL port and is subject to a security constraint with a transport guarantee that requires SSL. |
java.lang.String |
getScheme()
Return the scheme that will be assigned to requests received through this connector. |
boolean |
getSecure()
Return the secure connection flag that will be assigned to requests received through this connector. |
Service |
getService()
Return the Service with which we are associated (if any). |
void |
initialize()
Invoke a pre-startup initialization. |
void |
pause()
Pause the connector. |
void |
resume()
Pause the connector. |
void |
setContainer(Container container)
Set the Container used for processing requests received by this Connector. |
void |
setEnableLookups(boolean enableLookups)
Set the "enable DNS lookups" flag. |
void |
setFactory(ServerSocketFactory factory)
Set the server socket factory used by this Container. |
void |
setRedirectPort(int redirectPort)
Set the redirect port number. |
void |
setScheme(java.lang.String scheme)
Set the scheme that will be assigned to requests received through this connector. |
void |
setSecure(boolean secure)
Set the secure connection flag that will be assigned to requests received through this connector. |
void |
setService(Service service)
Set the Service with which we are associated (if any). |
| Method Detail |
public Container getContainer()
public void setContainer(Container container)
container - The new Container to usepublic boolean getEnableLookups()
public void setEnableLookups(boolean enableLookups)
enableLookups - The new "enable DNS lookups" flag valuepublic ServerSocketFactory getFactory()
public void setFactory(ServerSocketFactory factory)
factory - The new server socket factorypublic java.lang.String getInfo()
public int getRedirectPort()
public void setRedirectPort(int redirectPort)
redirectPort - The redirect port number (non-SSL to SSL)public java.lang.String getScheme()
public void setScheme(java.lang.String scheme)
scheme - The new schemepublic boolean getSecure()
public void setSecure(boolean secure)
secure - The new secure connection flagpublic Service getService()
Service with which we are associated (if any).
public void setService(Service service)
Service with which we are associated (if any).
service - The service that owns this Enginepublic Request createRequest()
public Response createResponse()
public void initialize()
throws LifecycleException
LifecycleException - If this server was already initialized.
public void pause()
throws LifecycleException
LifecycleException
public void resume()
throws LifecycleException
LifecycleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||