|
||||||||||
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(Logger logger,
String serverAddress,
int serverPort,
HttpServletRequest request,
HttpServletResponse response)
Constructor. |
|
ServletCall(Server server,
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. |
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 full request URI. |
HttpServletResponse |
getResponse()
Returns the HTTP Servlet response. |
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. |
int |
getServerPort()
Returns the server port. |
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 |
---|
getHostPort, getRequestEntity, readRequestHead, writeResponseBody, writeResponseHead, writeResponseHead |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getConnectorService, getLogger, getReasonPhrase, getResponseHeaders, getStatusCode, 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 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.public ServletCall(Logger logger, String serverAddress, int serverPort, HttpServletRequest request, HttpServletResponse response)
logger
- The logger.serverAddress
- The server IP address.serverPort
- The server port.Method Detail |
---|
public String getClientAddress()
getClientAddress
in class HttpCall
public int getClientPort()
getClientPort
in class HttpCall
public String getHostDomain()
getHostDomain
in class HttpServerCall
public String getMethod()
getMethod
in class HttpCall
public Protocol getProtocol()
getProtocol
in class HttpCall
public HttpServletRequest getRequest()
public ReadableByteChannel getRequestChannel()
getRequestChannel
in class HttpServerCall
public Series<Parameter> getRequestHeaders()
getRequestHeaders
in class HttpCall
public InputStream getRequestStream()
getRequestStream
in class HttpServerCall
public String getRequestUri()
getRequestUri
in class HttpCall
public HttpServletResponse getResponse()
public WritableByteChannel getResponseChannel()
getResponseChannel
in class HttpServerCall
public OutputStream getResponseStream()
getResponseStream
in class HttpServerCall
public String getServerAddress()
getServerAddress
in class HttpCall
public int getServerPort()
getServerPort
in class HttpCall
public String getVersion()
getVersion
in class HttpCall
public boolean isConfidential()
isConfidential
in class HttpCall
public void sendResponse(Response response) throws IOException
sendResponse
in class HttpServerCall
response
- The high-level response.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |