|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.Helper<T>
com.noelios.restlet.ConnectorHelper<Server>
com.noelios.restlet.ServerHelper
com.noelios.restlet.http.HttpServerHelper
public class HttpServerHelper
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. |
Constructor Summary | |
---|---|
HttpServerHelper()
Default constructor. |
|
HttpServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
HttpServerConverter |
getConverter()
Returns the converter from HTTP calls to uniform calls. |
void |
handle(HttpServerCall httpCall)
Handles the connector call. The default behavior is to create an REST call and delegate it to the attached Restlet. |
void |
setConverter(HttpServerConverter converter)
Sets the converter from HTTP calls to uniform calls. |
Methods inherited from class com.noelios.restlet.ServerHelper |
---|
handle, setEphemeralPort, setEphemeralPort, stop |
Methods inherited from class com.noelios.restlet.ConnectorHelper |
---|
getProtocols, start, update |
Methods inherited from class org.restlet.util.Helper |
---|
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, setHelped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServerHelper()
public HttpServerHelper(Server server)
server
- The server to help.Method Detail |
---|
public HttpServerConverter getConverter()
public void handle(HttpServerCall httpCall)
httpCall
- The HTTP server call.public void setConverter(HttpServerConverter converter)
converter
- The converter to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |