public class HttpServerHelper extends ServerHelper
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 and Description |
---|
HttpServerHelper()
Default constructor.
|
HttpServerHelper(Server server)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
handle, setEphemeralPort, stop
getConnectorService, getContext, getProtocols, start, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public HttpServerHelper()
public HttpServerHelper(Server server)
server
- The server to help.public ServerAdapter getAdapter()
public void handle(ServerCall httpCall)
httpCall
- The HTTP server call.public void setAdapter(ServerAdapter adapter)
adapter
- The converter to set.Copyright © 2005-2020 Restlet.