com.sapportals.wcm.util.http

Class Headers

java.lang.Object
  extended by com.sapportals.wcm.util.http.Headers

public final class Headers
extends Object

Headers keeps a list of HTTP headers and grants case-insensitiv access to those.

Copyright (c) SAP AG 2001-2002


Constructor Summary
Headers()
           
 
Method Summary
 void add(String name, String value)
          Add the header field name with value.
 void clear()
           
 String get(String name)
          Get the header value for name (case insensitive).
 Iterator keys()
          Enumerate all header names
 void remove(String name)
          Removes the header field name.
 void set(String name, String value)
          Set the header field name with value.
 boolean wasAdded(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Headers

public Headers()
Method Detail

clear

public void clear()

get

public String get(String name)
Get the header value for name (case insensitive).

Parameters:
name - the header name to look for
Returns:
the value of the header or null

keys

public Iterator keys()
Enumerate all header names

Returns:
TBD: Description of the outgoing return value

set

public void set(String name,
                String value)
Set the header field name with value. Will replace any already existing value.

Parameters:
name - of header field
value - of header field

add

public void add(String name,
                String value)
Add the header field name with value. Will add to any already existing value.

Parameters:
name - of header field
value - of header field

remove

public void remove(String name)
Removes the header field name.

Parameters:
name - of header to remove

wasAdded

public boolean wasAdded(String name)
Parameters:
name - TBD: Description of the incoming method parameter
Returns:
if this header was constructed using add methods.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice