mx4j.tools.adaptor.http
public interface HttpAdaptorMBean
Version: $Revision: 1.3 $
Method Summary | |
---|---|
void | addAuthorization(String username, String password)
Adds an authorization pair as username/password |
void | addCommandProcessor(String path, HttpCommandProcessor processor)
Adds a command processor object |
void | addCommandProcessor(String path, String processorClass)
Adds a command processor object by class |
String | getAuthenticationMethod()
Authentication Method
|
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 Processor set by |
ObjectName | getProcessorName()
Returns the ObjectName of the processor set by |
long | getRequestsCount()
Requests count
|
Date | getStartDate()
Starting date
|
String | getVersion()
Gets the HttpAdaptor version
|
boolean | isActive()
Indicates whether the server's running
|
void | removeCommandProcessor(String path)
Removes a command processor object by class |
void | setAuthenticationMethod(String method)
Sets the Authentication Method.
|
void | setHost(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 | setProcessorClass(String processorClass)
Sets the classname of 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 | setProcessorNameString(String processorName)
Sets the object name of the PostProcessor MBean. |
void | setSocketFactory(AdaptorServerSocketFactory factory)
Sets the object which create the server sockets
|
void | setSocketFactoryName(ObjectName factoryName)
Sets the factory's object name which will create the server sockets
|
void | setSocketFactoryNameString(String factoryName)
Sets the factory's object name which will create the server sockets
|
void | start()
Starts the server |
void | stop()
Stops the HTTP daemon |
Returns: authentication method
Returns: the current hostname
Returns: HTTPServer's port
Returns: The total of requests served so far
Returns: The date when the server was started
Returns: HttpAdaptor's version
Returns: The active value
Parameters: method none/basic/digest
Parameters: host Server's host
Parameters: port the new port's value
Parameters: processor a Post processor object
Parameters: processorClass a Post processor object
Parameters: processorName The new processorName value
Parameters: processorName a Post processor object
Parameters: factory the socket factory
Parameters: factoryName the socket factory
Parameters: factoryName the socket factory