|
Restlet Framework 2.2.3 Android |
|||||||||
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.connector.ConnectorHelper<T>
org.restlet.ext.nio.BaseHelper<T>
org.restlet.ext.nio.ConnectionHelper<Server>
org.restlet.ext.nio.ServerConnectionHelper
org.restlet.ext.nio.HttpServerHelper
public class HttpServerHelper
HTTP server helper based on NIO blocking sockets.
Field Summary |
---|
Fields inherited from class org.restlet.ext.nio.BaseHelper |
---|
clientSide, controller, inboundMessages, outboundMessages |
Constructor Summary | |
---|---|
HttpServerHelper(Server server)
Constructor. |
|
HttpServerHelper(Server server,
Protocol protocol)
Constructor. |
Method Summary | |
---|---|
protected boolean |
canHandle(org.restlet.ext.nio.internal.connection.Connection<Server> connection,
Response response)
Indicates if the connection can handle the given response at this point in time. |
org.restlet.ext.nio.internal.way.InboundWay |
createInboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection,
int bufferSize)
Creates an inbound way for the given connection. |
org.restlet.ext.nio.internal.way.OutboundWay |
createOutboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection,
int bufferSize)
Creates an outbound way for the given connection. |
Request |
createRequest(org.restlet.ext.nio.internal.connection.Connection<Server> connection,
java.lang.String methodName,
java.lang.String resourceUri,
java.lang.String protocol)
Creates a new request. |
Methods inherited from class org.restlet.ext.nio.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.connector.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(org.restlet.ext.nio.internal.connection.Connection<Server> connection, Response response) throws java.io.IOException
ServerConnectionHelper
canHandle
in class ServerConnectionHelper
connection
- The parent connection.response
- The response to handle.
java.io.IOException
public org.restlet.ext.nio.internal.way.InboundWay createInboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection, int bufferSize)
ConnectionHelper
createInboundWay
in class ConnectionHelper<Server>
connection
- The parent connection.bufferSize
- The byte buffer size.
public org.restlet.ext.nio.internal.way.OutboundWay createOutboundWay(org.restlet.ext.nio.internal.connection.Connection<Server> connection, int bufferSize)
ConnectionHelper
createOutboundWay
in class ConnectionHelper<Server>
connection
- The parent connection.bufferSize
- The byte buffer size.
public Request createRequest(org.restlet.ext.nio.internal.connection.Connection<Server> connection, java.lang.String methodName, java.lang.String resourceUri, java.lang.String protocol)
ServerConnectionHelper
createRequest
in class ServerConnectionHelper
connection
- The associated connection.methodName
- The method name.resourceUri
- The target resource URI.protocol
- The protocol name and version.
|
Restlet Framework 2.2.3 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |