|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.noelios.restlet.http.HttpCall
com.noelios.restlet.http.HttpServerCall
com.noelios.restlet.ext.jetty.JettyCall
public class JettyCall
Call that is used by the Jetty 6 HTTP server connector.
| Constructor Summary | |
|---|---|
JettyCall(Server server,
HttpConnection connection)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getClientAddress()
|
int |
getClientPort()
|
HttpConnection |
getConnection()
Returns the wrapped Jetty HTTP connection. |
String |
getMethod()
Returns the request method. |
ReadableByteChannel |
getRequestChannel()
Returns the request entity channel if it exists. |
Series<Parameter> |
getRequestHeaders()
Returns the list of request headers. |
InputStream |
getRequestStream()
Returns the request entity stream if it exists. |
String |
getRequestUri()
Returns the URI on the request line (most like a relative reference, but not necessarily). |
WritableByteChannel |
getResponseChannel()
Returns the response channel if it exists. |
OutputStream |
getResponseStream()
Returns the response stream if it exists. |
String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
boolean |
isConfidential()
Indicates if the request was made using a confidential mean. |
void |
sendResponse(Response response)
|
| Methods inherited from class com.noelios.restlet.http.HttpServerCall |
|---|
getHostDomain, getHostPort, getRequestEntity, readRequestHead, writeResponseBody, writeResponseHead, writeResponseHead |
| Methods inherited from class com.noelios.restlet.http.HttpCall |
|---|
formatDate, getConnectorService, getLogger, getProtocol, getReasonPhrase, getResponseHeaders, getServerPort, getStatusCode, getVersion, parseDate, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, setLogger, setMethod, setProtocol, setReasonPhrase, setRequestUri, setServerAddress, setServerPort, setStatusCode, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JettyCall(Server server,
HttpConnection connection)
server - The parent server.connection - The wrapped Jetty HTTP connection.| Method Detail |
|---|
public String getClientAddress()
getClientAddress in class HttpCallpublic int getClientPort()
getClientPort in class HttpCallpublic HttpConnection getConnection()
public String getMethod()
getMethod in class HttpCallpublic ReadableByteChannel getRequestChannel()
getRequestChannel in class HttpServerCallpublic Series<Parameter> getRequestHeaders()
getRequestHeaders in class HttpCallpublic InputStream getRequestStream()
getRequestStream in class HttpServerCallpublic String getRequestUri()
getRequestUri in class HttpCallpublic WritableByteChannel getResponseChannel()
getResponseChannel in class HttpServerCallpublic OutputStream getResponseStream()
getResponseStream in class HttpServerCallpublic String getServerAddress()
getServerAddress in class HttpCallpublic boolean isConfidential()
isConfidential in class HttpCall
public void sendResponse(Response response)
throws IOException
sendResponse in class HttpServerCallIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||