|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.ConnectorHelper<Server>
org.restlet.engine.ServerHelper
org.restlet.engine.adapter.HttpServerHelper
public class HttpServerHelper
Base HTTP server connector. Here is the list of parameters that are supported. They should be set in the Server's context before it is started:
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. |
adapter | String | org.restlet.engine.adapter.ServerAdapter | Class name of the adapter of low-level HTTP calls into high level requests and responses. |
Constructor Summary | |
---|---|
HttpServerHelper()
Default constructor. |
|
HttpServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
ServerAdapter |
getAdapter()
Returns the adapter from HTTP calls to uniform calls. |
void |
handle(ServerCall httpCall)
Handles the connector call. |
void |
setAdapter(ServerAdapter adapter)
Sets the adapter from HTTP calls to uniform calls. |
Methods inherited from class org.restlet.engine.ServerHelper |
---|
handle, setEphemeralPort, setEphemeralPort, stop |
Methods inherited from class org.restlet.engine.ConnectorHelper |
---|
getConnectorService, getContext, getProtocols, start, update |
Methods inherited from class org.restlet.engine.RestletHelper |
---|
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, 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 ServerAdapter getAdapter()
public void handle(ServerCall httpCall)
httpCall
- The HTTP server call.public void setAdapter(ServerAdapter adapter)
adapter
- The converter to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |