com.pcbsys.nirvana.client.CustomHTTPRequestHeader Class Reference

This class represents a http header. More...

Data Structures

enum  HeaderConnectionScope
 Scope of usage of the header. More...
 

Public Member Functions

 CustomHTTPRequestHeader (String header, String value, HeaderConnectionScope headerScope)
 
 CustomHTTPRequestHeader (String header, String value)
 

Detailed Description

This class represents a http header.

It consists of key value pair and the scope of usage of the header.

Constructor & Destructor Documentation

com.pcbsys.nirvana.client.CustomHTTPRequestHeader.CustomHTTPRequestHeader ( String  header,
String  value,
HeaderConnectionScope  headerScope 
)
Parameters
headername of the header field
valuevalue of the header field
headerScopedescribes in which http request the header should be used
com.pcbsys.nirvana.client.CustomHTTPRequestHeader.CustomHTTPRequestHeader ( String  header,
String  value 
)
Parameters
headername of the header field
valuevalue of the header field This constructor will initialize the object with the default scope which is HeaderConnectionScope.ALL_CONNECTIONS