| |
|
| com.noelios.restlet.ext.asyncweb.AsyncWebServerHelper com.noelios.restlet.ext.asyncweb.HttpServerHelper com.noelios.restlet.ext.asyncweb.AsyncWebServerHelper
All known Subclasses: com.noelios.restlet.ext.asyncweb.HttpServerHelper,
AsyncWebServerHelper | abstract public class AsyncWebServerHelper extends HttpServerHelper implements ServiceContainer(Code) | | Abstract AsyncWeb server connector. Here is the list of parameters that are
supported:
Parameter name |
Value type |
Default value |
Description |
ioWorkerCount |
int |
2 |
Number of worker threads to employ. |
converter |
String |
com.noelios.restlet.http.HttpServerConverter |
Class name of the converter of low-level HTTP calls into high level
requests and responses. |
useForwardedForHeader |
boolean |
false |
Lookup the "X-Forwarded-For" header supported by popular proxies and
caches and uses it to populate the Request.getClientAddresses() method
result. This information is only safe for intermediary components within your
local network. Other addresses could easily be changed by setting a fake
header and should not be trusted for serious security checks. |
This implementation passes by all of AsyncWeb
ServiceContainer, HttpServiceHandler etc. mechanisms and implements a
com.noelios.restlet.http.HttpServerHelper and a
org.safehaus.asyncweb.container.ServiceContainer directly. It takes
care about setting up a
org.safehaus.asyncweb.transport.nio.NIOTransport .
Note: This implementation is not usable inside an AsyncWeb standard
environment because it represents a container and not a handler; it takes
full control over the container lifecycle.
author: Lars Heuer (heuer[at]semagia.com) author: href="http://www.semagia.com/">Semagia author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public void | addServiceHandler(ServiceHandler serviceHandler) | public void | addTransport(Transport transport) | public void | dispatchRequest(AsyncWebRequest request) | public int | getIoWorkerCount() Returns the number of worker threads to employ. | protected Transport | getTransport() Returns the AsyncWeb transport layer. | protected void | setTransport(Transport transport) Sets the AsyncWeb transport layer. | public void | start() Starts the Connector. | public void | stop() Stops the Connector. |
AsyncWebServerHelper | public AsyncWebServerHelper(Server server, boolean confidential)(Code) | | Constructor.
Parameters: server - The server to help. Parameters: confidential - Indicates if the server is acting in HTTPS mode. |
addServiceHandler | public void addServiceHandler(ServiceHandler serviceHandler)(Code) | | |
addTransport | public void addTransport(Transport transport)(Code) | | |
dispatchRequest | public void dispatchRequest(AsyncWebRequest request)(Code) | | |
getIoWorkerCount | public int getIoWorkerCount()(Code) | | Returns the number of worker threads to employ.
The number of worker threads to employ. |
getTransport | protected Transport getTransport()(Code) | | Returns the AsyncWeb transport layer.
The AsyncWeb transport layer. |
setTransport | protected void setTransport(Transport transport)(Code) | | Sets the AsyncWeb transport layer.
Parameters: transport - The AsyncWeb transport layer. |
start | public void start() throws ContainerLifecycleException(Code) | | Starts the Connector.
|
stop | public void stop()(Code) | | Stops the Connector.
|
Methods inherited from com.noelios.restlet.ext.asyncweb.HttpServerHelper | public void start() throws ContainerLifecycleException(Code)(Java Doc)
|
|
|
|