public class SimpleCall extends ServerCall
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Closes the socket.
|
void |
complete()
Complete the response
|
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. |
String |
getHostDomain()
Returns the host domain name.
|
String |
getMethod()
Returns the request method.
|
ReadableByteChannel |
getRequestEntityChannel(long size)
Returns the request entity channel if it exists.
|
InputStream |
getRequestEntityStream(long size)
Returns the request entity stream if it exists.
|
ReadableByteChannel |
getRequestHeadChannel()
Returns the request head channel if it exists.
|
Series<Parameter> |
getRequestHeaders()
Returns the list of request headers.
|
InputStream |
getRequestHeadStream()
Returns the request head stream if it exists.
|
String |
getRequestUri()
Returns the full request URI.
|
WritableByteChannel |
getResponseEntityChannel()
Returns the response channel if it exists.
|
OutputStream |
getResponseEntityStream()
Returns the response stream if it exists.
|
String |
getSslCipherSuite()
Returns the SSL Cipher Suite, if available and accessible.
|
List<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).
|
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, writeResponseHead
getLogger, 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, setVersion
public boolean abort()
abort
in class ServerCall
public void complete()
ServerCall
complete
in class ServerCall
public String getClientAddress()
Call
getClientAddress
in class Call
public int getClientPort()
Call
getClientPort
in class Call
protected long getContentLength()
ServerCall
Representation.UNKNOWN_SIZE
otherwise.getContentLength
in class ServerCall
public String getHostDomain()
ServerCall
getHostDomain
in class ServerCall
public String getMethod()
public ReadableByteChannel getRequestEntityChannel(long size)
ServerCall
getRequestEntityChannel
in class ServerCall
size
- The expected entity size or -1 if unknown.public InputStream getRequestEntityStream(long size)
ServerCall
getRequestEntityStream
in class ServerCall
size
- The expected entity size or -1 if unknown.public ReadableByteChannel getRequestHeadChannel()
ServerCall
getRequestHeadChannel
in class ServerCall
public Series<Parameter> getRequestHeaders()
getRequestHeaders
in class Call
public InputStream getRequestHeadStream()
ServerCall
getRequestHeadStream
in class ServerCall
public String getRequestUri()
getRequestUri
in class Call
public WritableByteChannel getResponseEntityChannel()
getResponseEntityChannel
in class ServerCall
public OutputStream getResponseEntityStream()
getResponseEntityStream
in class ServerCall
public String getSslCipherSuite()
ServerCall
getSslCipherSuite
in class ServerCall
public List<Certificate> getSslClientCertificates()
ServerCall
getSslClientCertificates
in class ServerCall
protected byte[] getSslSessionIdBytes()
ServerCall
getSslSessionIdBytes
in class ServerCall
public String getVersion()
Call
getVersion
in class Call
protected boolean isClientKeepAlive()
Call
isClientKeepAlive
in class ServerCall
public void writeResponseHead(Response restletResponse) throws IOException
ServerCall
writeResponseHead
in class ServerCall
restletResponse
- The response.IOException
Copyright © 2005–2016. All rights reserved.