|
||||||||||
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()
|
String |
getClientAddress()
|
int |
getClientPort()
|
org.mortbay.jetty.HttpConnection |
getConnection()
Returns the wrapped Jetty HTTP connection. |
String |
getMethod()
Returns the request method. |
ReadableByteChannel |
getRequestEntityChannel(long size)
|
InputStream |
getRequestEntityStream(long size)
|
ReadableByteChannel |
getRequestHeadChannel()
|
Series<Parameter> |
getRequestHeaders()
Returns the list of request headers. |
InputStream |
getRequestHeadStream()
|
String |
getRequestUri()
Returns the URI on the request line (most like a relative reference, but not necessarily). |
WritableByteChannel |
getResponseEntityChannel()
Returns the response channel if it exists. |
OutputStream |
getResponseEntityStream()
Returns the response stream if it exists. |
String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
String |
getSslCipherSuite()
|
List<Certificate> |
getSslClientCertificates()
|
Integer |
getSslKeySize()
|
boolean |
isConfidential()
Indicates if the request was made using a confidential mean. |
boolean |
isConnectionBroken(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 String getClientAddress()
getClientAddress
in class HttpCall
public int getClientPort()
getClientPort
in class HttpCall
public org.mortbay.jetty.HttpConnection getConnection()
public String getMethod()
getMethod
in class HttpCall
public ReadableByteChannel getRequestEntityChannel(long size)
getRequestEntityChannel
in class HttpServerCall
public InputStream getRequestEntityStream(long size)
getRequestEntityStream
in class HttpServerCall
public ReadableByteChannel getRequestHeadChannel()
getRequestHeadChannel
in class HttpServerCall
public Series<Parameter> getRequestHeaders()
getRequestHeaders
in class HttpCall
public InputStream getRequestHeadStream()
getRequestHeadStream
in class HttpServerCall
public String getRequestUri()
getRequestUri
in class HttpCall
public WritableByteChannel getResponseEntityChannel()
getResponseEntityChannel
in class HttpServerCall
public OutputStream getResponseEntityStream()
getResponseEntityStream
in class HttpServerCall
public String getServerAddress()
getServerAddress
in class HttpCall
public String getSslCipherSuite()
getSslCipherSuite
in class HttpServerCall
public List<Certificate> getSslClientCertificates()
getSslClientCertificates
in class HttpServerCall
public Integer getSslKeySize()
getSslKeySize
in class HttpServerCall
public boolean isConfidential()
isConfidential
in class HttpCall
public boolean isConnectionBroken(Exception exception)
isConnectionBroken
in class HttpCall
public void sendResponse(Response response) throws IOException
sendResponse
in class HttpServerCall
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |