com.noelios.restlet.ext.asyncweb
Class AsyncWebServerCall

java.lang.Object
  extended by com.noelios.restlet.http.HttpCall
      extended by com.noelios.restlet.http.HttpServerCall
          extended by com.noelios.restlet.ext.asyncweb.AsyncWebServerCall

public class AsyncWebServerCall
extends HttpServerCall

HttpServerCall implementation used by the AsyncServer.

Author:
Lars Heuer (heuer[at]semagia.com) Semagia

Constructor Summary
AsyncWebServerCall(Server server, org.safehaus.asyncweb.http.HttpRequest request, org.safehaus.asyncweb.http.HttpResponse response, boolean confidential)
          Constructor.
 
Method Summary
 String getClientAddress()
           
 int getClientPort()
           
 String getMethod()
           
 ReadableByteChannel getRequestChannel()
           
 Series<Parameter> getRequestHeaders()
           
 InputStream getRequestStream()
           
 String getRequestUri()
           
 WritableByteChannel getResponseChannel()
           
 OutputStream getResponseStream()
           
 void writeResponseHead(Response restletResponse)
           
 
Methods inherited from class com.noelios.restlet.http.HttpServerCall
getHostDomain, getHostPort, getRequestEntity, readRequestHead, sendResponse, writeResponseBody, writeResponseHead
 
Methods inherited from class com.noelios.restlet.http.HttpCall
formatDate, getConnectorService, getLogger, getProtocol, getReasonPhrase, getResponseHeaders, getServerAddress, getServerPort, getStatusCode, getVersion, isConfidential, 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

AsyncWebServerCall

public AsyncWebServerCall(Server server,
                          org.safehaus.asyncweb.http.HttpRequest request,
                          org.safehaus.asyncweb.http.HttpResponse response,
                          boolean confidential)
Constructor.

Parameters:
server - The parent server connector.
request - The AsyncWebRequest.
response - The AsyncWebResponse.
confidential - Indicates if the server is acting in HTTPS mode.
Method Detail

getClientAddress

public String getClientAddress()
Overrides:
getClientAddress in class HttpCall

getClientPort

public int getClientPort()
Overrides:
getClientPort in class HttpCall

getRequestUri

public String getRequestUri()
Overrides:
getRequestUri in class HttpCall

getMethod

public String getMethod()
Overrides:
getMethod in class HttpCall

getRequestHeaders

public Series<Parameter> getRequestHeaders()
Overrides:
getRequestHeaders in class HttpCall

writeResponseHead

public void writeResponseHead(Response restletResponse)
                       throws IOException
Overrides:
writeResponseHead in class HttpServerCall
Throws:
IOException

getRequestChannel

public ReadableByteChannel getRequestChannel()
Specified by:
getRequestChannel in class HttpServerCall

getRequestStream

public InputStream getRequestStream()
Specified by:
getRequestStream in class HttpServerCall

getResponseChannel

public WritableByteChannel getResponseChannel()
Specified by:
getResponseChannel in class HttpServerCall

getResponseStream

public OutputStream getResponseStream()
Specified by:
getResponseStream in class HttpServerCall


Copyright © 2005-2007 Noelios Consulting.