|
||||||||||
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,
org.mortbay.jetty.HttpConnection connection)
Constructor. |
Method Summary | |
---|---|
void |
complete()
|
java.lang.String |
getClientAddress()
|
int |
getClientPort()
|
org.mortbay.jetty.HttpConnection |
getConnection()
Returns the wrapped Jetty HTTP connection. |
java.lang.String |
getMethod()
Returns the request method. |
java.nio.channels.ReadableByteChannel |
getRequestEntityChannel(long size)
|
java.io.InputStream |
getRequestEntityStream(long size)
|
java.nio.channels.ReadableByteChannel |
getRequestHeadChannel()
|
Series<Parameter> |
getRequestHeaders()
Returns the list of request headers. |
java.io.InputStream |
getRequestHeadStream()
|
java.lang.String |
getRequestUri()
Returns the URI on the request line (most like a relative reference, but not necessarily). |
java.nio.channels.WritableByteChannel |
getResponseEntityChannel()
Returns the response channel if it exists. |
java.io.OutputStream |
getResponseEntityStream()
Returns the response stream if it exists. |
java.lang.String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
java.lang.String |
getSslCipherSuite()
|
java.util.List<java.security.cert.Certificate> |
getSslClientCertificates()
|
java.lang.Integer |
getSslKeySize()
|
boolean |
isConfidential()
Indicates if the request was made using a confidential mean. |
boolean |
isConnectionBroken(java.lang.Exception exception)
|
void |
sendResponse(Response response)
|
Methods inherited from class com.noelios.restlet.http.HttpServerCall |
---|
formatContentDisposition, getContentLength, getHostDomain, getHostPort, getRequestEntity, isClientKeepAlive, isServerKeepAlive, readRequestHead, shouldResponseBeChunked, writeResponseBody, writeResponseHead, writeResponseHead |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getConnectorService, getContentLength, getLogger, getProtocol, getReasonPhrase, getResponseHeaders, getServerPort, getStatusCode, getVersion, isKeepAlive, isRequestChunked, isResponseChunked, parseDate, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, 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, org.mortbay.jetty.HttpConnection connection)
server
- The parent server.connection
- The wrapped Jetty HTTP connection.Method Detail |
---|
public void complete()
complete
in class HttpServerCall
public java.lang.String getClientAddress()
getClientAddress
in class HttpCall
public int getClientPort()
getClientPort
in class HttpCall
public org.mortbay.jetty.HttpConnection getConnection()
public java.lang.String getMethod()
getMethod
in class HttpCall
public java.nio.channels.ReadableByteChannel getRequestEntityChannel(long size)
getRequestEntityChannel
in class HttpServerCall
public java.io.InputStream getRequestEntityStream(long size)
getRequestEntityStream
in class HttpServerCall
public java.nio.channels.ReadableByteChannel getRequestHeadChannel()
getRequestHeadChannel
in class HttpServerCall
public Series<Parameter> getRequestHeaders()
getRequestHeaders
in class HttpCall
public java.io.InputStream getRequestHeadStream()
getRequestHeadStream
in class HttpServerCall
public java.lang.String getRequestUri()
getRequestUri
in class HttpCall
public java.nio.channels.WritableByteChannel getResponseEntityChannel()
getResponseEntityChannel
in class HttpServerCall
public java.io.OutputStream getResponseEntityStream()
getResponseEntityStream
in class HttpServerCall
public java.lang.String getServerAddress()
getServerAddress
in class HttpCall
public java.lang.String getSslCipherSuite()
getSslCipherSuite
in class HttpServerCall
public java.util.List<java.security.cert.Certificate> getSslClientCertificates()
getSslClientCertificates
in class HttpServerCall
public java.lang.Integer getSslKeySize()
getSslKeySize
in class HttpServerCall
public boolean isConfidential()
isConfidential
in class HttpCall
public boolean isConnectionBroken(java.lang.Exception exception)
isConnectionBroken
in class HttpCall
public void sendResponse(Response response) throws java.io.IOException
sendResponse
in class HttpServerCall
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |