|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Embedded MBean interface.
Field Summary | |
static java.lang.String |
NAME
Component name. |
static java.lang.String |
OBJECT_NAME
Object name. |
static int |
STARTED
|
static int |
STARTING
|
static java.lang.String[] |
states
Status constants. |
static int |
STOPPED
|
static int |
STOPPING
|
Method Summary | |
void |
addConnector(Connector connector)
Add a new Connector to the set of defined Connectors. |
void |
addEngine(Engine engine)
Add a new Engine to the set of defined Engines. |
Connector |
createConnector(java.net.InetAddress address,
int port,
boolean secure)
Create, configure, and return a new TCP/IP socket connector based on the specified properties. |
Context |
createContext(java.lang.String path,
java.lang.String docBase)
Create, configure, and return a Context that will process all HTTP requests received from one of the associated Connectors, and directed to the specified context path on the virtual host to which this Context is connected. |
Engine |
createEngine()
Create, configure, and return an Engine that will process all HTTP requests received from one of the associated Connectors, based on the specified properties. |
Host |
createHost(java.lang.String name,
java.lang.String appBase)
Create, configure, and return a Host that will process all HTTP requests received from one of the associated Connectors, and directed to the specified virtual host. |
void |
destroy()
Destroy servlet container (if any is running). |
int |
getDebug()
Return the debugging detail level for this component. |
java.lang.String |
getInfo()
Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version> . |
Logger |
getLogger()
Return the Logger for this component. |
java.lang.String |
getName()
Retruns the Catalina component name. |
Realm |
getRealm()
Return the default Realm for our Containers. |
java.lang.String |
getSocketFactory()
Return the secure socket factory class name. |
int |
getState()
Returns the state. |
java.lang.String |
getStateString()
Returns a String representation of the state. |
boolean |
isUseNaming()
Return true if naming is enabled. |
void |
removeConnector(Connector connector)
Remove the specified Connector from the set of defined Connectors. |
void |
removeContext(Context context)
Remove the specified Context from the set of defined Contexts for its associated Host. |
void |
removeEngine(Engine engine)
Remove the specified Engine from the set of defined Engines, along with all of its related Hosts and Contexts. |
void |
removeHost(Host host)
Remove the specified Host, along with all of its related Contexts, from the set of defined Hosts for its associated Engine. |
void |
setDebug(int debug)
Set the debugging detail level for this component. |
void |
setLogger(Logger logger)
Set the Logger for this component. |
void |
setRealm(Realm realm)
Set the default Realm for our Containers. |
void |
setSocketFactory(java.lang.String socketFactory)
Set the secure socket factory class name. |
void |
setUseNaming(boolean useNaming)
Enables or disables naming support. |
void |
start()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
Field Detail |
public static final java.lang.String[] states
public static final int STOPPED
public static final int STOPPING
public static final int STARTING
public static final int STARTED
public static final java.lang.String NAME
public static final java.lang.String OBJECT_NAME
Method Detail |
public java.lang.String getName()
public int getState()
public java.lang.String getStateString()
public int getDebug()
public void setDebug(int debug)
debug
- The new debugging detail levelpublic boolean isUseNaming()
public void setUseNaming(boolean useNaming)
useNaming
- The new use naming valuepublic Logger getLogger()
public void setLogger(Logger logger)
logger
- The new loggerpublic Realm getRealm()
public void setRealm(Realm realm)
realm
- The new default realmpublic java.lang.String getSocketFactory()
public void setSocketFactory(java.lang.String socketFactory)
socketFactory
- The new secure socket factory class namepublic void addConnector(Connector connector)
connector
- The connector to be added
java.lang.IllegalStateException
- if no engines have been added yetpublic void addEngine(Engine engine)
engine
- The engine to be addedpublic Connector createConnector(java.net.InetAddress address, int port, boolean secure)
address
- InetAddress to listen to, or null
to listen on all address on this serverport
- Port number to listen tosecure
- Should this port be SSL-enabled?public Context createContext(java.lang.String path, java.lang.String docBase)
After you have customized the properties, listeners, and Valves for this Context, you must attach it to the corresponding Host by calling:
host.addChild(context);which will also cause the Context to be started if the Host has already been started.
path
- Context path of this application ("" for the default
application for this host, must start with a slash otherwise)docBase
- Absolute pathname to the document base directory
for this web application
java.lang.IllegalArgumentException
- if an invalid parameter
is specifiedpublic Engine createEngine()
public Host createHost(java.lang.String name, java.lang.String appBase)
After you have customized the properties, listeners, and Valves for this Host, you must attach it to the corresponding Engine by calling:
engine.addChild(host);which will also cause the Host to be started if the Engine has already been started. If this is the default (or only) Host you will be defining, you may also tell the Engine to pass all requests not assigned to another virtual host to this one:
engine.setDefaultHost(host.getName());
name
- Canonical name of this virtual hostappBase
- Absolute pathname to the application base directory
for this virtual host
java.lang.IllegalArgumentException
- if an invalid parameter
is specifiedpublic java.lang.String getInfo()
<description>/<version>
.
public void removeConnector(Connector connector)
connector
- The Connector to be removedpublic void removeContext(Context context)
context
- The Context to be removedpublic void removeEngine(Engine engine)
engine
- The Engine to be removedpublic void removeHost(Host host)
host
- The Host to be removedpublic void start()
configure()
,
and before any of the public methods of the component are utilized.
java.lang.IllegalStateException
- if this component has already been
startedpublic void stop()
java.lang.IllegalStateException
- if this component has not been startedpublic void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |