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 java.lang.Object

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

Author:
Jerome Louvel

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.
 java.util.logging.Logger getLogger()
          Returns the 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

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.

getContext

public Context getContext()
Returns the context.

Returns:
The context.

getLogger

public java.util.logging.Logger getLogger()
Returns the logger.

Returns:
The logger.


Copyright © 2005-2008 Noelios Technologies.