com.ephox.editlive.custom
Class HTTPHeaders

java.lang.Object
  extended by com.ephox.editlive.custom.HTTPHeaders

public class HTTPHeaders
extends Object

This class is used to manage a list of HTTP request headers for HTTPRequestCallback instances.


Constructor Summary
HTTPHeaders()
           
 
Method Summary
 void addRequestHeader(String headerName, String headerValue)
          Add the specified request header.
 List<String[]> 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. Does not overwrite 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<String[]> 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-2012 Ephox Pty Ltd. All rights reserved.