|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.web.base.proxy.HttpOnDemandProxy
public class HttpOnDemandProxy
This class provides proxy mechanism.
This is used to intercept requests and then start the web container or deploy the associated war file.
Constructor Summary | |
---|---|
HttpOnDemandProxy()
Default constructor. |
Method Summary | |
---|---|
void |
addWar(String warFile)
Called by the deployer if this proxy is enabled. |
void |
disable()
Stop the component |
void |
enable()
Start this component. |
ContextInfo |
getContextInfo(String context)
|
int |
getHttpPortNumber()
|
int |
getRedirectPortNumber()
|
ServerSocket |
getServerSocket()
|
BaseWebContainerService |
getWebContainerService()
|
boolean |
isAvailableContext(String context)
Checks if the context is available (can be started or not) |
boolean |
isContextDeployed(String context)
Checks if the context is ready to be called by clients |
void |
removeWar(String warFile)
Unregister the given war file |
void |
run()
Start the thread for this service. |
void |
setHttpPortNumber(int httpPortNumber)
Sets the proxy port number. |
void |
setRedirectPortNumber(int redirectPortNumber)
Sets the redirect port number (internal web container port) |
void |
setWebContainerService(BaseWebContainerService webContainerService)
Sets the web container service that is linked to this component. |
void |
startWebContainer()
Starts the web container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpOnDemandProxy()
Method Detail |
---|
public void run()
run
in interface Runnable
public void enable() throws HttpOnDemandProxyException
HttpOnDemandProxyException
- if start-up failedpublic void disable() throws HttpOnDemandProxyException
HttpOnDemandProxyException
- service stopping failedpublic int getHttpPortNumber()
public void setHttpPortNumber(int httpPortNumber)
httpPortNumber
- the proxy port numberpublic ServerSocket getServerSocket()
public void setWebContainerService(BaseWebContainerService webContainerService)
webContainerService
- the service instancepublic BaseWebContainerService getWebContainerService()
public void startWebContainer() throws JWebContainerServiceException
JWebContainerServiceException
- if container is not startedpublic int getRedirectPortNumber()
public void setRedirectPortNumber(int redirectPortNumber)
redirectPortNumber
- given port numberpublic boolean isAvailableContext(String context)
context
- the name of the context
public ContextInfo getContextInfo(String context)
context
- the given context used to get info
public boolean isContextDeployed(String context)
context
- the given context name
public void addWar(String warFile) throws HttpOnDemandProxyException
warFile
- the given file to deploy
HttpOnDemandProxyException
- if the file cannot be registeredpublic void removeWar(String warFile)
warFile
- the file to undeploy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |