com.hp.hpl.deli
Class UAProfCreateHttpResponse

java.lang.Object
  extended bycom.hp.hpl.deli.UAProfCreateHttpResponse

public class UAProfCreateHttpResponse
extends java.lang.Object

This class adds the x-wap-profile-warning header.

Author:
Mark H. Butler (mark-h.butler@hp.com)

Field Summary
static int CONTENT_GENERATION_APPLIED
          MUST be included if the content has been tailored or generated as a result of applying the included profile.
static int CONTENT_SELECTION_APPLIED
          MUST be included if the included content has been selected from one of the representations available.
static int NOT_APPLIED
          This value MUST be included if the content has not been tailored, and is sent in a representation which is the only representaiton available in the server.
static int NOT_SUPPORTED
          Indicates that the entity sending this warning code does not support UAProf.
static int TRANSFORMATION_APPLIED
          MUST be added by an intermediate proxy if it applies any transformation changing the content-coding based on the CPI data.
 
Method Summary
static javax.servlet.http.HttpServletResponse addWarningHeader(javax.servlet.http.HttpServletResponse res, int warning)
          This method adds the x-wap-profile-warning header to the response header.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_APPLIED

public static final int NOT_APPLIED
This value MUST be included if the content has not been tailored, and is sent in a representation which is the only representaiton available in the server.

See Also:
Constant Field Values

CONTENT_SELECTION_APPLIED

public static final int CONTENT_SELECTION_APPLIED
MUST be included if the included content has been selected from one of the representations available.

See Also:
Constant Field Values

CONTENT_GENERATION_APPLIED

public static final int CONTENT_GENERATION_APPLIED
MUST be included if the content has been tailored or generated as a result of applying the included profile.

See Also:
Constant Field Values

TRANSFORMATION_APPLIED

public static final int TRANSFORMATION_APPLIED
MUST be added by an intermediate proxy if it applies any transformation changing the content-coding based on the CPI data.

See Also:
Constant Field Values

NOT_SUPPORTED

public static final int NOT_SUPPORTED
Indicates that the entity sending this warning code does not support UAProf.

See Also:
Constant Field Values
Method Detail

addWarningHeader

public static javax.servlet.http.HttpServletResponse addWarningHeader(javax.servlet.http.HttpServletResponse res,
                                                                      int warning)
This method adds the x-wap-profile-warning header to the response header.

Parameters:
res - The HttpServletResponse object.
warning - The warning code.
Returns:
The modified HttpServletResponse object.