com.noelios.restlet.http
Class HttpConverter

java.lang.Object
  extended by com.noelios.restlet.http.HttpConverter
Direct Known Subclasses:
HttpClientConverter, HttpServerConverter

public class HttpConverter
extends Object

Converter between high-level and low-level HTTP calls.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
HttpConverter(Context context)
          Constructor.
 
Method Summary
 void addAdditionalHeaders(Series<Parameter> existingHeaders, Series<Parameter> additionalHeaders)
          Adds additional headers if they are non-standard headers.
 Context getContext()
          Returns the context.
 Logger getLogger()
          Returns the context's logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConverter

public HttpConverter(Context context)
Constructor.

Parameters:
context - The context to use.
Method Detail

getContext

public Context getContext()
Returns the context.

Returns:
The context.

getLogger

public Logger getLogger()
Returns the context's logger.

Returns:
The context's logger.

addAdditionalHeaders

public void addAdditionalHeaders(Series<Parameter> existingHeaders,
                                 Series<Parameter> additionalHeaders)
Adds additional headers if they are non-standard headers.

Parameters:
existingHeaders - The headers to update.
additionalHeaders - The headers to add.


Copyright © 2005-2007 Noelios Technologies.