|
||||||||||
| 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<T>
org.restlet.engine.connector.BaseHelper<T>
org.restlet.engine.connector.ConnectionHelper<Server>
org.restlet.engine.connector.ServerConnectionHelper
org.restlet.engine.connector.HttpServerHelper
public class HttpServerHelper
HTTP server helper based on NIO blocking sockets.
| Field Summary |
|---|
| Fields inherited from class org.restlet.engine.connector.BaseHelper |
|---|
clientSide, controller, inboundMessages, outboundMessages |
| Constructor Summary | |
|---|---|
HttpServerHelper(Server server)
Constructor. |
|
HttpServerHelper(Server server,
Protocol protocol)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
canHandle(Connection<Server> connection,
Response response)
Indicates if the connection can handle the given response at this point in time. |
InboundWay |
createInboundWay(Connection<Server> connection,
int bufferSize)
Creates an inbound way for the given connection. |
OutboundWay |
createOutboundWay(Connection<Server> connection,
int bufferSize)
Creates an outbound way for the given connection. |
protected Request |
createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Creates a new request. |
| Methods inherited from class org.restlet.engine.connector.ServerConnectionHelper |
|---|
createConnection, createController, createServerSocketChannel, createSocketAddress, doHandleInbound, doHandleOutbound, getController, getServerSocketChannel, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, isReuseAddress, setEphemeralPort, setEphemeralPort, start, stop |
| Methods inherited from class org.restlet.engine.ConnectorHelper |
|---|
getConnectorService, getContext, getProtocols, 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(Server server)
server - The server to help.
public HttpServerHelper(Server server,
Protocol protocol)
server - The server to help.protocol - The protocol supported.| Method Detail |
|---|
protected boolean canHandle(Connection<Server> connection,
Response response)
throws IOException
ServerConnectionHelper
canHandle in class ServerConnectionHelperconnection - The parent connection.response - The response to handle.
IOException
public InboundWay createInboundWay(Connection<Server> connection,
int bufferSize)
ConnectionHelper
createInboundWay in class ConnectionHelper<Server>connection - The parent connection.bufferSize - The byte buffer size.
public OutboundWay createOutboundWay(Connection<Server> connection,
int bufferSize)
ConnectionHelper
createOutboundWay in class ConnectionHelper<Server>connection - The parent connection.bufferSize - The byte buffer size.
protected Request createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
ServerConnectionHelper
createRequest in class ServerConnectionHelperconnection - The associated connection.methodName - The method name.resourceUri - The target resource URI.protocol - The protocol name and version.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||