public class SimpleCall extends ServerCall
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Closes the socket.
|
void |
complete()
Complete the response
|
java.lang.String |
getClientAddress()
Returns the client address.
Corresponds to the IP address of the requesting client. |
int |
getClientPort()
Returns the client port.
Corresponds to the TCP/IP port of the requesting client. |
protected long |
getContentLength()
Returns the content length of the request entity if know,
Representation.UNKNOWN_SIZE otherwise. |
java.lang.String |
getHostDomain()
Returns the host domain name.
|
java.lang.String |
getMethod()
Returns the request method.
|
java.nio.channels.ReadableByteChannel |
getRequestEntityChannel(long size)
Returns the request entity channel if it exists.
|
java.io.InputStream |
getRequestEntityStream(long size)
Returns the request entity stream if it exists.
|
java.nio.channels.ReadableByteChannel |
getRequestHeadChannel()
Returns the request head channel if it exists.
|
Series<Parameter> |
getRequestHeaders()
Returns the list of request headers.
|
java.io.InputStream |
getRequestHeadStream()
Returns the request head stream if it exists.
|
java.lang.String |
getRequestUri()
Returns the full request URI.
|
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 |
getSslCipherSuite()
Returns the SSL Cipher Suite, if available and accessible.
|
java.util.List<java.security.cert.Certificate> |
getSslClientCertificates()
Returns the chain of client certificates, if available and accessible.
|
protected byte[] |
getSslSessionIdBytes()
Returns the SSL session ID, as a byte array, if available and accessible
in that format (to be used by getSslSessionId).
|
java.lang.String |
getVersion()
Returns the protocol version used.
|
protected boolean |
isClientKeepAlive()
Indicates if the client wants a persistent connection.
|
void |
writeResponseHead(Response restletResponse)
Writes the response status line and headers.
|
getHostPort, getRequestEntity, getSslKeySize, getSslSessionId, isServerKeepAlive, readRequestHead, sendResponse, shouldResponseBeChunked, writeResponseBody, writeResponseHeadgetLogger, getProtocol, getReasonPhrase, getRepresentation, getRepresentation, getResponseHeaders, getServerAddress, getServerPort, getStatusCode, getUserPrincipal, isBroken, isConfidential, isConnectionBroken, isKeepAlive, isRequestChunked, isResponseChunked, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, setMethod, setProtocol, setReasonPhrase, setRequestUri, setServerAddress, setServerPort, setStatusCode, setUserPrincipal, setVersionpublic boolean abort()
abort in class ServerCallpublic void complete()
ServerCallcomplete in class ServerCallpublic java.lang.String getClientAddress()
CallgetClientAddress in class Callpublic int getClientPort()
CallgetClientPort in class Callprotected long getContentLength()
ServerCallRepresentation.UNKNOWN_SIZE otherwise.getContentLength in class ServerCallpublic java.lang.String getHostDomain()
ServerCallgetHostDomain in class ServerCallpublic java.lang.String getMethod()
public java.nio.channels.ReadableByteChannel getRequestEntityChannel(long size)
ServerCallgetRequestEntityChannel in class ServerCallsize - The expected entity size or -1 if unknown.public java.io.InputStream getRequestEntityStream(long size)
ServerCallgetRequestEntityStream in class ServerCallsize - The expected entity size or -1 if unknown.public java.nio.channels.ReadableByteChannel getRequestHeadChannel()
ServerCallgetRequestHeadChannel in class ServerCallpublic Series<Parameter> getRequestHeaders()
getRequestHeaders in class Callpublic java.io.InputStream getRequestHeadStream()
ServerCallgetRequestHeadStream in class ServerCallpublic java.lang.String getRequestUri()
getRequestUri in class Callpublic java.nio.channels.WritableByteChannel getResponseEntityChannel()
getResponseEntityChannel in class ServerCallpublic java.io.OutputStream getResponseEntityStream()
getResponseEntityStream in class ServerCallpublic java.lang.String getSslCipherSuite()
ServerCallgetSslCipherSuite in class ServerCallpublic java.util.List<java.security.cert.Certificate> getSslClientCertificates()
ServerCallgetSslClientCertificates in class ServerCallprotected byte[] getSslSessionIdBytes()
ServerCallgetSslSessionIdBytes in class ServerCallpublic java.lang.String getVersion()
CallgetVersion in class Callprotected boolean isClientKeepAlive()
CallisClientKeepAlive in class ServerCallpublic void writeResponseHead(Response restletResponse) throws java.io.IOException
ServerCallwriteResponseHead in class ServerCallrestletResponse - The response.java.io.IOExceptionCopyright © 2005-2012. All Rights Reserved.