| |
|
| com.noelios.restlet.ServerHelper com.noelios.restlet.http.HttpServerHelper
All known Subclasses: com.noelios.restlet.ext.jetty.JettyServerHelper, com.noelios.restlet.http.StreamServerHelper,
HttpServerHelper | public class HttpServerHelper extends ServerHelper (Code) | | Base HTTP server connector. Here is the list of parameters that are
supported:
Parameter name |
Value type |
Default value |
Description |
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. |
converter |
String |
com.noelios.restlet.http.HttpServerConverter |
Class name of the converter of low-level HTTP calls into high level
requests and responses. |
author: Jerome Louvel (contact@noelios.com) |
HttpServerHelper | public HttpServerHelper()(Code) | | Default constructor. Note that many methods assume that a non-null server
is set to work properly. You can use the
HttpServerHelper.setServer method for
this purpose or better rely on the other constructor.
|
HttpServerHelper | public HttpServerHelper(Server server)(Code) | | Constructor.
Parameters: server - The server to help. |
getConverter | public HttpServerConverter getConverter()(Code) | | Returns the converter from HTTP calls to uniform calls.
the converter from HTTP calls to uniform calls. |
handle | public void handle(HttpServerCall httpCall)(Code) | | Handles the connector call. The default behavior is to create an
REST call and delegate it to the attached Restlet.
Parameters: httpCall - The HTTP server call. |
setConverter | public void setConverter(HttpServerConverter converter)(Code) | | Sets the converter from HTTP calls to uniform calls.
Parameters: converter - The converter to set. |
|
|
|