|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.connector.http10.HttpConnector
Simple implementation of an HTTP/1.0 Connector, for testing and debugging purposes. Not intended to be the final solution.
| Field Summary | |
protected Container |
container
Deprecated. The Container used for processing requests received by this Connector. |
protected LifecycleSupport |
lifecycle
Deprecated. The lifecycle event support for this component. |
protected int |
minProcessors
Deprecated. The minimum number of processors to start at initialization time. |
| Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
HttpConnector()
Deprecated. |
|
| Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Deprecated. Add a lifecycle event listener to this component. |
Request |
createRequest()
Deprecated. Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container. |
Response |
createResponse()
Deprecated. Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container. |
LifecycleListener[] |
findLifecycleListeners()
Deprecated. Get the lifecycle listeners associated with this lifecycle. |
int |
getAcceptCount()
Deprecated. Return the accept count for this Connector. |
java.lang.String |
getAddress()
Deprecated. Return the bind IP address for this Connector. |
int |
getBufferSize()
Deprecated. Return the input buffer size for this Connector. |
int |
getConnectionTimeout()
Deprecated. Return the connection timeout for this Connector. |
Container |
getContainer()
Deprecated. Return the Container used for processing requests received by this Connector. |
int |
getCurProcessors()
Deprecated. Return the current number of processors that have been created. |
int |
getDebug()
Deprecated. Return the debugging detail level for this component. |
boolean |
getEnableLookups()
Deprecated. Return the "enable DNS lookups" flag. |
ServerSocketFactory |
getFactory()
Deprecated. Return the server socket factory used by this Container. |
java.lang.String |
getInfo()
Deprecated. Return descriptive information about this Connector implementation. |
int |
getMaxProcessors()
Deprecated. Return the maximum number of processors allowed, or <0 for unlimited. |
int |
getMinProcessors()
Deprecated. Return the minimum number of processors to start at initialization. |
int |
getPort()
Deprecated. Return the port number on which we listen for HTTP requests. |
java.lang.String |
getProxyName()
Deprecated. Return the proxy server name for this Connector. |
int |
getProxyPort()
Deprecated. Return the proxy server port for this Connector. |
int |
getRedirectPort()
Deprecated. 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()
Deprecated. Return the scheme that will be assigned to requests received through this connector. |
boolean |
getSecure()
Deprecated. Return the secure connection flag that will be assigned to requests received through this connector. |
Service |
getService()
Deprecated. Return the Service with which we are associated (if any). |
void |
initialize()
Deprecated. Initialize this connector (create ServerSocket here!) |
boolean |
isAvailable()
Deprecated. Is this connector available for processing requests? |
void |
removeLifecycleListener(LifecycleListener listener)
Deprecated. Remove a lifecycle event listener from this component. |
void |
run()
Deprecated. The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
void |
setAcceptCount(int count)
Deprecated. Set the accept count for this Connector. |
void |
setAddress(java.lang.String address)
Deprecated. Set the bind IP address for this Connector. |
void |
setBufferSize(int bufferSize)
Deprecated. Set the input buffer size for this Connector. |
void |
setConnectionTimeout(int connectionTimeout)
Deprecated. Set the connection timeout for this Connector. |
void |
setContainer(Container container)
Deprecated. Set the Container used for processing requests received by this Connector. |
void |
setDebug(int debug)
Deprecated. Set the debugging detail level for this component. |
void |
setEnableLookups(boolean enableLookups)
Deprecated. Set the "enable DNS lookups" flag. |
void |
setFactory(ServerSocketFactory factory)
Deprecated. Set the server socket factory used by this Container. |
void |
setMaxProcessors(int maxProcessors)
Deprecated. Set the maximum number of processors allowed, or <0 for unlimited. |
void |
setMinProcessors(int minProcessors)
Deprecated. Set the minimum number of processors to start at initialization. |
void |
setPort(int port)
Deprecated. Set the port number on which we listen for HTTP requests. |
void |
setProxyName(java.lang.String proxyName)
Deprecated. Set the proxy server name for this Connector. |
void |
setProxyPort(int proxyPort)
Deprecated. Set the proxy server port for this Connector. |
void |
setRedirectPort(int redirectPort)
Deprecated. Set the redirect port number. |
void |
setScheme(java.lang.String scheme)
Deprecated. Set the scheme that will be assigned to requests received through this connector. |
void |
setSecure(boolean secure)
Deprecated. Set the secure connection flag that will be assigned to requests received through this connector. |
void |
setService(Service service)
Deprecated. Set the Service with which we are associated (if any). |
void |
start()
Deprecated. Begin processing requests via this Connector. |
void |
stop()
Deprecated. Terminate processing requests via this Connector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Container container
protected LifecycleSupport lifecycle
protected int minProcessors
| Constructor Detail |
public HttpConnector()
| Method Detail |
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public int getAcceptCount()
public void setAcceptCount(int count)
count - The new accept countpublic java.lang.String getAddress()
public void setAddress(java.lang.String address)
address - The bind IP addresspublic boolean isAvailable()
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - The new input buffer size.public Container getContainer()
getContainer in interface Connectorpublic void setContainer(Container container)
setContainer in interface Connectorcontainer - The new Container to usepublic int getCurProcessors()
public int getDebug()
public void setDebug(int debug)
debug - The new debugging detail levelpublic boolean getEnableLookups()
getEnableLookups in interface Connectorpublic void setEnableLookups(boolean enableLookups)
setEnableLookups in interface ConnectorenableLookups - The new "enable DNS lookups" flag valuepublic ServerSocketFactory getFactory()
getFactory in interface Connectorpublic void setFactory(ServerSocketFactory factory)
setFactory in interface Connectorfactory - The new server socket factorypublic java.lang.String getInfo()
getInfo in interface Connectorpublic int getMinProcessors()
public void setMinProcessors(int minProcessors)
minProcessors - The new minimum processorspublic int getMaxProcessors()
public void setMaxProcessors(int maxProcessors)
maxProcessors - The new maximum processorspublic int getPort()
public void setPort(int port)
port - The new port numberpublic java.lang.String getProxyName()
public void setProxyName(java.lang.String proxyName)
proxyName - The new proxy server namepublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The new proxy server portpublic int getRedirectPort()
getRedirectPort in interface Connectorpublic void setRedirectPort(int redirectPort)
setRedirectPort in interface ConnectorredirectPort - The redirect port number (non-SSL to SSL)public java.lang.String getScheme()
getScheme in interface Connectorpublic void setScheme(java.lang.String scheme)
setScheme in interface Connectorscheme - The new schemepublic boolean getSecure()
getSecure in interface Connectorpublic void setSecure(boolean secure)
setSecure in interface Connectorsecure - The new secure connection flagpublic Service getService()
Service with which we are associated (if any).
getService in interface Connectorpublic void setService(Service service)
Service with which we are associated (if any).
setService in interface Connectorservice - The service that owns this Enginepublic Request createRequest()
createRequest in interface Connectorpublic Response createResponse()
createResponse in interface Connectorpublic void run()
run in interface java.lang.Runnablepublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecyclelistener - The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners in interface Lifecyclepublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecyclelistener - The listener to add
public void initialize()
throws LifecycleException
initialize in interface ConnectorLifecycleException - If this server was already initialized.
public void start()
throws LifecycleException
start in interface LifecycleLifecycleException - if a fatal startup error occurs
public void stop()
throws LifecycleException
stop in interface LifecycleLifecycleException - if a fatal shutdown error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||