|
||||||||||
| 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.servlet.ServletCall
public class ServletCall
Call that is used by the Servlet HTTP server connector.
| Constructor Summary | |
|---|---|
ServletCall(Server server,
HttpServletRequest request,
HttpServletResponse response)
Constructor. |
|
ServletCall(String serverAddress,
int serverPort,
HttpServletRequest request,
HttpServletResponse response)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getClientAddress()
|
int |
getClientPort()
|
String |
getHostDomain()
Returns the server domain name. |
String |
getMethod()
Returns the request method. |
Protocol |
getProtocol()
Returns the server protocol. |
HttpServletRequest |
getRequest()
Returns the HTTP Servlet request. |
static HttpServletRequest |
getRequest(Request request)
Returns the Servlet request that was used to generate the given Restlet request. |
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 full request URI. |
HttpServletResponse |
getResponse()
Returns the HTTP Servlet response. |
WritableByteChannel |
getResponseEntityChannel()
Returns the response channel if it exists, null otherwise. |
OutputStream |
getResponseEntityStream()
Returns the response stream if it exists, null otherwise. |
String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
int |
getServerPort()
Returns the server port. |
String |
getSslCipherSuite()
|
List<Certificate> |
getSslClientCertificates()
|
Integer |
getSslKeySize()
|
String |
getVersion()
|
boolean |
isConfidential()
Indicates if the request was made using a confidential mean. |
void |
sendResponse(Response response)
Sends the response back to the client. |
| Methods inherited from class com.noelios.restlet.http.HttpServerCall |
|---|
complete, formatContentDisposition, getContentLength, getHostPort, getRequestEntity, isClientKeepAlive, isServerKeepAlive, readRequestHead, shouldResponseBeChunked, writeResponseBody, writeResponseHead, writeResponseHead |
| Methods inherited from class com.noelios.restlet.http.HttpCall |
|---|
formatDate, getConnectorService, getContentLength, getLogger, getReasonPhrase, getResponseHeaders, getStatusCode, isConnectionBroken, 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 ServletCall(String serverAddress,
int serverPort,
HttpServletRequest request,
HttpServletResponse response)
serverAddress - The server IP address.serverPort - The server port.request - The Servlet requestresponse - The Servlet response.
public ServletCall(Server server,
HttpServletRequest request,
HttpServletResponse response)
server - The parent server.request - The HTTP Servlet request to wrap.response - The HTTP Servlet response to wrap.| Method Detail |
|---|
public static HttpServletRequest getRequest(Request request)
request - The Restlet request.
public String getClientAddress()
getClientAddress in class HttpCallpublic int getClientPort()
getClientPort in class HttpCallpublic String getHostDomain()
getHostDomain in class HttpServerCallpublic String getMethod()
getMethod in class HttpCallpublic Protocol getProtocol()
getProtocol in class HttpCallpublic HttpServletRequest getRequest()
public ReadableByteChannel getRequestEntityChannel(long size)
getRequestEntityChannel in class HttpServerCallpublic InputStream getRequestEntityStream(long size)
getRequestEntityStream in class HttpServerCallpublic ReadableByteChannel getRequestHeadChannel()
getRequestHeadChannel in class HttpServerCallpublic Series<Parameter> getRequestHeaders()
getRequestHeaders in class HttpCallpublic InputStream getRequestHeadStream()
getRequestHeadStream in class HttpServerCallpublic String getRequestUri()
getRequestUri in class HttpCallpublic HttpServletResponse getResponse()
public WritableByteChannel getResponseEntityChannel()
getResponseEntityChannel in class HttpServerCallpublic OutputStream getResponseEntityStream()
getResponseEntityStream in class HttpServerCallpublic String getServerAddress()
getServerAddress in class HttpCallpublic int getServerPort()
getServerPort in class HttpCallpublic String getSslCipherSuite()
getSslCipherSuite in class HttpServerCallpublic List<Certificate> getSslClientCertificates()
getSslClientCertificates in class HttpServerCallpublic Integer getSslKeySize()
getSslKeySize in class HttpServerCallpublic String getVersion()
getVersion in class HttpCallpublic boolean isConfidential()
isConfidential in class HttpCall
public void sendResponse(Response response)
throws IOException
sendResponse in class HttpServerCallresponse - The high-level response.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||