com.ibm.wbi.protocol.http
Class MarkupLanguageInfo

java.lang.Object
  |
  +--com.ibm.wbi.RequestInfo
        |
        +--com.ibm.wbi.protocol.http.MarkupLanguageInfo
Direct Known Subclasses:
DocumentInfo

public abstract class MarkupLanguageInfo
extends RequestInfo

A request info descriptor that is generic to any markup language.


Field Summary
static int REQUEST_HEADER
          The request header.
static int RESPONSE_HEADER
          The response header.
 
Constructor Summary
MarkupLanguageInfo()
          Constructor.
 
Method Summary
abstract  java.lang.String getByKey(java.lang.String key, int whichHeader)
          Get a value from the specified key and header type.
abstract  java.lang.String getRequestContentLength()
          Get the request content length.
abstract  java.lang.String getRequestContentType()
          Get the request content type.
abstract  java.lang.String getResponseContentLength()
          Get the response content length.
abstract  java.lang.String getResponseContentType()
          Get the response content type.
abstract  java.lang.String toString()
          Produce a brief human-readable description of the request
 
Methods inherited from class com.ibm.wbi.RequestInfo
addRule, createInstance, getAllExtraRuleKeys, getExtraRuleKey, getRequestCharEncoding, getResponseCharEncoding, getRule, getRuleAttributes, getRuleBundle, getRuleValues, getTransactionData, getTransactionDataElements, getTransactionDataKeys, populateInstance, removeRule, setExtraRuleKey, setTransactionData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUEST_HEADER

public static final int REQUEST_HEADER
The request header.

RESPONSE_HEADER

public static final int RESPONSE_HEADER
The response header.
Constructor Detail

MarkupLanguageInfo

public MarkupLanguageInfo()
Constructor.
Method Detail

toString

public abstract java.lang.String toString()
Produce a brief human-readable description of the request
Overrides:
toString in class RequestInfo
Returns:
A brief human-readable description of the request.

getRequestContentType

public abstract java.lang.String getRequestContentType()
Get the request content type.
Returns:
The request content type.

getRequestContentLength

public abstract java.lang.String getRequestContentLength()
Get the request content length.
Returns:
The request content length.

getResponseContentType

public abstract java.lang.String getResponseContentType()
Get the response content type.
Returns:
The response content type.

getResponseContentLength

public abstract java.lang.String getResponseContentLength()
Get the response content length.
Parameters:
The - response content length.

getByKey

public abstract java.lang.String getByKey(java.lang.String key,
                                          int whichHeader)
Get a value from the specified key and header type.
Parameters:
key - A key used when consulting the header.
whichHeader - Selects which header to search; One of REQUEST_HEADER, RESPONSE_HEADER
Returns:
A String containing all values associated with the passed key.