|
||||||||||
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 HttpAdaptorMBean
port
- the new port's valuepublic void setHost(java.lang.String host)
setHost
in interface HttpAdaptorMBean
host
- Server's hostpublic java.lang.String getAuthenticationMethod()
getAuthenticationMethod
in interface HttpAdaptorMBean
public void setAuthenticationMethod(java.lang.String method)
setAuthenticationMethod
in interface HttpAdaptorMBean
method
- none/basic/digestpublic void setProcessor(ProcessorMBean processor)
setProcessor
in interface HttpAdaptorMBean
processor
- a Post processor objectpublic void setSocketFactory(AdaptorServerSocketFactory factory)
setSocketFactory
in interface HttpAdaptorMBean
factory
- the socket factorypublic void setSocketFactoryName(java.lang.String factoryName)
HttpAdaptorMBean
setSocketFactoryName
in interface HttpAdaptorMBean
mx4j.adaptor.http.HttpAdaptorMBean
factoryName
- the ObjectName of the ServerSocket factorypublic void setProcessorName(ObjectName processorName)
setProcessorName
in interface HttpAdaptorMBean
processorName
- The new processorName valuepublic ProcessorMBean getProcessor()
HttpAdaptorMBean
getProcessor
in interface HttpAdaptorMBean
mx4j.adaptor.http.HttpAdaptorMBean
public ObjectName getProcessorName()
HttpAdaptorMBean
getProcessorName
in interface HttpAdaptorMBean
mx4j.adaptor.http.HttpAdaptorMBean
public int getPort()
getPort
in interface HttpAdaptorMBean
public java.lang.String getHost()
getHost
in interface HttpAdaptorMBean
public boolean isActive()
isActive
in interface HttpAdaptorMBean
public ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception
preRegister
in interface MBeanRegistration
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws java.lang.Exception
preDeregister
in interface MBeanRegistration
public 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 HttpAdaptorMBean
public void stop()
stop
in interface HttpAdaptorMBean
public void addAuthorization(java.lang.String username, java.lang.String password)
HttpAdaptorMBean
addAuthorization
in interface HttpAdaptorMBean
mx4j.adaptor.http.HttpAdaptorMBean
username
- 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 |