|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.connector.http.HttpConnector
Implementation of an HTTP/1.1 connector.
Field Summary | |
protected Container |
container
The Container used for processing requests received by this Connector. |
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected int |
minProcessors
The minimum number of processors to start at initialization time. |
Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
Constructor Summary | |
HttpConnector()
|
Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
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. |
int |
getAcceptCount()
Return the accept count for this Connector. |
java.lang.String |
getAddress()
Return the bind IP address for this Connector. |
int |
getBufferSize()
Return the input buffer size for this Connector. |
Container |
getContainer()
Return the Container used for processing requests received by this Connector. |
int |
getCurProcessors()
Return the current number of processors that have been created. |
int |
getDebug()
Return the debugging detail level for this component. |
ServerSocketFactory |
getFactory()
Return the server socket factory used by this Container. |
java.lang.String |
getInfo()
Return descriptive information about this Connector implementation. |
int |
getMaxProcessors()
Return the maximum number of processors allowed, or <0 for unlimited. |
int |
getMinProcessors()
Return the minimum number of processors to start at initialization. |
int |
getPort()
Return the port number on which we listen for HTTP requests. |
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. |
boolean |
isAvailable()
Is this connector available for processing requests? |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
run()
The background thread that listens for incoming TCP/IP connections and hands them off to an appropriate processor. |
void |
setAcceptCount(int count)
Set the accept count for this Connector. |
void |
setAddress(java.lang.String address)
Set the bind IP address for this Connector. |
void |
setBufferSize(int bufferSize)
Set the input buffer size for this Connector. |
void |
setContainer(Container container)
Set the Container used for processing requests received by this Connector. |
void |
setDebug(int debug)
Set the debugging detail level for this component. |
void |
setFactory(ServerSocketFactory factory)
Set the server socket factory used by this Container. |
void |
setMaxProcessors(int maxProcessors)
Set the maximum number of processors allowed, or <0 for unlimited. |
void |
setMinProcessors(int minProcessors)
Set the minimum number of processors to start at initialization. |
void |
setPort(int port)
Set the port number on which we listen for HTTP requests. |
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 |
start()
Begin processing requests via this Connector. |
void |
stop()
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 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 Connector
public void setContainer(Container container)
setContainer
in interface Connector
container
- The new Container to usepublic int getCurProcessors()
public int getDebug()
public void setDebug(int debug)
debug
- The new debugging detail levelpublic ServerSocketFactory getFactory()
getFactory
in interface Connector
public void setFactory(ServerSocketFactory factory)
setFactory
in interface Connector
factory
- The new server socket factorypublic java.lang.String getInfo()
getInfo
in interface Connector
public 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 getScheme()
getScheme
in interface Connector
public void setScheme(java.lang.String scheme)
setScheme
in interface Connector
scheme
- The new schemepublic boolean getSecure()
getSecure
in interface Connector
public void setSecure(boolean secure)
setSecure
in interface Connector
secure
- The new secure connection flagpublic Request createRequest()
createRequest
in interface Connector
public Response createResponse()
createResponse
in interface Connector
public void run()
run
in interface java.lang.Runnable
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic void start() throws LifecycleException
start
in interface Lifecycle
LifecycleException
- if a fatal startup error occurspublic void stop() throws LifecycleException
stop
in interface Lifecycle
LifecycleException
- if a fatal shutdown error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |