|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mx4j.adaptor.http.HttpAdaptor
HttpAdaptor sets the basic adaptor listening for HTTP requests
| Constructor Summary | |
HttpAdaptor()
|
|
| Method Summary | |
void |
addAuthorization(java.lang.String username,
java.lang.String password)
Adds an authorization |
protected void |
buildCommands()
Build the commands |
protected void |
findUnknownElement(java.lang.String path,
mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in)
|
java.lang.String |
getAuthenticationMethod()
Authentication Method |
java.lang.String |
getHost()
Return the host name the server will be listening to. |
int |
getPort()
Returns the port where the server is running on. |
ProcessorMBean |
getProcessor()
Returns the object being used as a processor |
protected mx4j.adaptor.http.HttpCommandProcessor |
getProcessor(java.lang.String path)
Gets a processor for a given path |
ObjectName |
getProcessorName()
Returns the ObjectName of the processor being used |
boolean |
isActive()
Indicates whether the server's running |
void |
postDeregister()
|
protected void |
postProcess(mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in,
org.w3c.dom.Document document)
|
protected void |
postProcess(mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in,
java.lang.Exception e)
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
protected java.lang.String |
preProcess(java.lang.String path)
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Gathers some basic data |
void |
restart()
Deprecated. as of RC 1 |
void |
setAuthenticationMethod(java.lang.String method)
Sets the Authentication Method. |
void |
setHost(java.lang.String host)
Sets the host name where the server will be listening |
void |
setPort(int port)
Sets the value of the server's port |
void |
setProcessor(ProcessorMBean processor)
Sets the object which will post process the XML results. |
void |
setProcessorName(ObjectName processorName)
Sets the object name which will post process the XML result. |
void |
setSocketFactory(AdaptorServerSocketFactory factory)
Sets the object which create the server sockets |
void |
setSocketFactoryName(java.lang.String factoryName)
Sets the ObjectName of the factory for server sockets |
void |
start()
Starts the server |
void |
stop()
Stops the HTTP daemon |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpAdaptor()
| Method Detail |
public void setPort(int port)
setPort in interface HttpAdaptorMBeanport - the new port's valuepublic void setHost(java.lang.String host)
setHost in interface HttpAdaptorMBeanhost - Server's hostpublic java.lang.String getAuthenticationMethod()
getAuthenticationMethod in interface HttpAdaptorMBeanpublic void setAuthenticationMethod(java.lang.String method)
setAuthenticationMethod in interface HttpAdaptorMBeanmethod - none/basic/digestpublic void setProcessor(ProcessorMBean processor)
setProcessor in interface HttpAdaptorMBeanprocessor - a Post processor objectpublic void setSocketFactory(AdaptorServerSocketFactory factory)
setSocketFactory in interface HttpAdaptorMBeanfactory - the socket factorypublic void setSocketFactoryName(java.lang.String factoryName)
HttpAdaptorMBeansetSocketFactoryName in interface HttpAdaptorMBeanmx4j.adaptor.http.HttpAdaptorMBeanfactoryName - the ObjectName of the ServerSocket factorypublic void setProcessorName(ObjectName processorName)
setProcessorName in interface HttpAdaptorMBeanprocessorName - The new processorName valuepublic ProcessorMBean getProcessor()
HttpAdaptorMBeangetProcessor in interface HttpAdaptorMBeanmx4j.adaptor.http.HttpAdaptorMBeanpublic ObjectName getProcessorName()
HttpAdaptorMBeangetProcessorName in interface HttpAdaptorMBeanmx4j.adaptor.http.HttpAdaptorMBeanpublic int getPort()
getPort in interface HttpAdaptorMBeanpublic java.lang.String getHost()
getHost in interface HttpAdaptorMBeanpublic boolean isActive()
isActive in interface HttpAdaptorMBean
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
preRegister in interface MBeanRegistrationpublic void postRegister(java.lang.Boolean registrationDone)
postRegister in interface MBeanRegistration
public void preDeregister()
throws java.lang.Exception
preDeregister in interface MBeanRegistrationpublic void postDeregister()
postDeregister in interface MBeanRegistration
public void start()
throws java.io.IOException
start in interface HttpAdaptorMBean
public void restart()
throws java.io.IOException
restart in interface HttpAdaptorMBeanpublic void stop()
stop in interface HttpAdaptorMBean
public void addAuthorization(java.lang.String username,
java.lang.String password)
HttpAdaptorMBeanaddAuthorization in interface HttpAdaptorMBeanmx4j.adaptor.http.HttpAdaptorMBeanusername - authorized usernameusername - authorized passwordprotected mx4j.adaptor.http.HttpCommandProcessor getProcessor(java.lang.String path)
protected void buildCommands()
protected void postProcess(mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in,
org.w3c.dom.Document document)
throws java.io.IOException,
JMException
protected void findUnknownElement(java.lang.String path,
mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in)
throws java.io.IOException,
JMException
protected java.lang.String preProcess(java.lang.String path)
throws java.io.IOException,
JMException
protected void postProcess(mx4j.adaptor.http.HttpOutputStream out,
mx4j.adaptor.http.HttpInputStream in,
java.lang.Exception e)
throws java.io.IOException,
JMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||