|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.connector.warp.WarpConnector
Field Summary | |
protected int |
uniqueId
The unique ID of this connector instance. |
Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
Constructor Summary | |
WarpConnector()
Construct a new instance of a WarpConnector . |
Method Summary | |
void |
addLifecycleListener(org.apache.catalina.LifecycleListener listener)
Add a LifecycleEvent listener to this
Connector . |
protected org.apache.catalina.Context |
applicationContext(int id)
Return the application for a given ID. |
protected int |
applicationId(org.apache.catalina.Context context)
Return the application ID for a given Context . |
org.apache.catalina.Request |
createRequest()
Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container. |
org.apache.catalina.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 IP address to which this Connector will bind to. |
java.lang.String |
getAppBase()
Get the applications base directory for hosts created via WARP. |
org.apache.catalina.Container |
getContainer()
Return the Container instance which will process all
requests received by this Connector . |
int |
getDebug()
Return the debug level. |
boolean |
getEnableLookups()
Return the "enable DNS lookups" flag. |
org.apache.catalina.net.ServerSocketFactory |
getFactory()
Return the ServerSocketFactory used by this
Connector to generate ServerSocket instances. |
java.lang.String |
getInfo()
Return descriptive information about this Connector . |
int |
getPort()
Return the port to which this Connector will bind to. |
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. |
org.apache.catalina.Service |
getService()
Return the Service with which we are associated (if any). |
void |
initialize()
Initialize this connector (create ServerSocket here!) |
boolean |
isStarted()
Check whether this service was started or not. |
void |
removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
Remove a LifecycleEvent listener from this
Connector . |
void |
run()
Start accepting WARP requests from the network. |
void |
setAcceptCount(int count)
Set the accept count for this Connector. |
void |
setAddress(int port)
Set the IP address to which this Connector will bind to. |
void |
setAddress(java.lang.String address)
Set the IP address to which this Connector will bind to. |
void |
setAppBase(java.lang.String appbase)
Set the applications base directory for hosts created via WARP. |
void |
setContainer(org.apache.catalina.Container container)
Set the Container instance which will process all requests
received by this Connector . |
void |
setDebug(int debug)
Set the debug level. |
void |
setEnableLookups(boolean enableLookups)
Set the "enable DNS lookups" flag. |
void |
setFactory(org.apache.catalina.net.ServerSocketFactory factory)
Set the ServerSocketFactory used by this
Connector to generate ServerSocket instances. |
void |
setInfo(java.lang.String info)
Set descriptive information about this Connector . |
void |
setPort(int port)
Return the port to which this Connector will bind to. |
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(org.apache.catalina.Service service)
Set the Service with which we are associated (if any). |
void |
start()
Start accepting connections by this Connector . |
void |
stop()
Stop accepting connections by this Connector . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int uniqueId
Constructor Detail |
public WarpConnector()
WarpConnector
.Method Detail |
public org.apache.catalina.Container getContainer()
Container
instance which will process all
requests received by this Connector
.getContainer
in interface org.apache.catalina.Connector
public void setContainer(org.apache.catalina.Container container)
Container
instance which will process all requests
received by this Connector
.setContainer
in interface org.apache.catalina.Connector
container
- The new Container to usepublic boolean getEnableLookups()
getEnableLookups
in interface org.apache.catalina.Connector
public void setEnableLookups(boolean enableLookups)
setEnableLookups
in interface org.apache.catalina.Connector
enableLookups
- The new "enable DNS lookups" flag valuepublic org.apache.catalina.net.ServerSocketFactory getFactory()
ServerSocketFactory
used by this
Connector
to generate ServerSocket
instances.getFactory
in interface org.apache.catalina.Connector
public void setFactory(org.apache.catalina.net.ServerSocketFactory factory)
ServerSocketFactory
used by this
Connector
to generate ServerSocket
instances.setFactory
in interface org.apache.catalina.Connector
factory
- The new server socket factorypublic int getRedirectPort()
getRedirectPort
in interface org.apache.catalina.Connector
public void setRedirectPort(int redirectPort)
setRedirectPort
in interface org.apache.catalina.Connector
redirectPort
- The redirect port number (non-SSL to SSL)public java.lang.String getScheme()
getScheme
in interface org.apache.catalina.Connector
public void setScheme(java.lang.String scheme)
setScheme
in interface org.apache.catalina.Connector
scheme
- The new schemepublic boolean getSecure()
getSecure
in interface org.apache.catalina.Connector
public void setSecure(boolean secure)
setSecure
in interface org.apache.catalina.Connector
secure
- The new secure connection flagpublic org.apache.catalina.Service getService()
Service
with which we are associated (if any).getService
in interface org.apache.catalina.Connector
public void setService(org.apache.catalina.Service service)
Service
with which we are associated (if any).setService
in interface org.apache.catalina.Connector
service
- The service that owns this Enginepublic java.lang.String getInfo()
Connector
.getInfo
in interface org.apache.catalina.Connector
public void setInfo(java.lang.String info)
Connector
.public java.lang.String getAddress()
Connector
will bind to.public void setAddress(java.lang.String address)
Connector
will bind to.address
- The bind IP addresspublic int getPort()
Connector
will bind to.public void setPort(int port)
Connector
will bind to.public void setAddress(int port)
Connector
will bind to.address
- The bind IP addresspublic int getAcceptCount()
public void setAcceptCount(int count)
count
- The new accept countpublic java.lang.String getAppBase()
public void setAppBase(java.lang.String appbase)
appBase
- The appbase property.public int getDebug()
public void setDebug(int debug)
public void addLifecycleListener(org.apache.catalina.LifecycleListener listener)
LifecycleEvent
listener to this
Connector
.addLifecycleListener
in interface org.apache.catalina.Lifecycle
listener
- The listener to addpublic void removeLifecycleListener(org.apache.catalina.LifecycleListener listener)
LifecycleEvent
listener from this
Connector
.removeLifecycleListener
in interface org.apache.catalina.Lifecycle
listener
- The listener to removepublic void initialize() throws org.apache.catalina.LifecycleException
initialize
in interface org.apache.catalina.Connector
public void start() throws org.apache.catalina.LifecycleException
Connector
.start
in interface org.apache.catalina.Lifecycle
public void stop() throws org.apache.catalina.LifecycleException
Connector
.stop
in interface org.apache.catalina.Lifecycle
public boolean isStarted()
protected int applicationId(org.apache.catalina.Context context)
Context
.protected org.apache.catalina.Context applicationContext(int id)
public org.apache.catalina.Request createRequest()
createRequest
in interface org.apache.catalina.Connector
public org.apache.catalina.Response createResponse()
createResponse
in interface org.apache.catalina.Connector
public void run()
run
in interface java.lang.Runnable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |