com.ephox.editlive.custom
Class HTTPHeaders

java.lang.Object
  extended bycom.ephox.editlive.custom.HTTPHeaders

public class HTTPHeaders
extends Object


Constructor Summary
HTTPHeaders()
           
 
Method Summary
 void addRequestHeader(String headerName, String headerValue)
          Add the specified request header, NOT overwriting any previous value.
 List getHeaders()
          Returns the the header List.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPHeaders

public HTTPHeaders()
Method Detail

addRequestHeader

public void addRequestHeader(String headerName,
                             String headerValue)
Add the specified request header, NOT overwriting any previous value. Note that header-name matching is case insensitive.

Parameters:
headerName - the header's name
headerValue - the header's value

getHeaders

public List getHeaders()
Returns the the header List. This list should not be modified directly.

Returns:
returns a List containing the headers. Each header is stored as an Array {headerName, headerValue}

Copyright (c) 2005-2007 Ephox Pty Ltd. All rights reserved.