|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.ccpp.CCPPRequest
public class CCPPRequest
Field Summary |
---|
Fields inherited from interface org.w3c.jigsaw.ccpp.CCPP |
---|
CCPP_REQUEST_STATE, CONTENT_GENERATION_APPLIED, CONTENT_SELECTION_APPLIED, HTTP_EXT_ID, msg_100, msg_200, NOT_APPLIED, NOT_USED_STALE_PROFILE, OK, PROFILE_DIFF_HEADER, PROFILE_HEADER, PROFILE_WARNING_HEADER, TRANSFORMATION_APPLIED, UNKNOWN_WARNING_MESSAGE, USED_STALE_PROFILE |
Method Summary | |
---|---|
protected Reply |
acknowledge(Reply reply)
Set the Acknowledgement Headers if it's appropriate. |
void |
addWarning(Reply reply,
int warning,
java.lang.String reference)
Add a CC/PP Warning to the given reply. |
java.lang.String |
getCCPPHeaderValue(java.lang.String header)
Get a header value (relative to the CC/PP Extension protocol) |
static CCPPRequest |
getCCPPRequest(Request request)
Get the CC/PP Request associated to the given HTTP Request |
Request |
getHTTPRequest()
Get the HTTP Request |
java.lang.String |
getProfileDiff(int diffnumber)
Get the profile diff header relative to the given profile diff number. |
ProfileRef[] |
getProfileReferences()
Get the Profile references (absolute URI or Profile-diff-name) ordered by priority (the last one has the highest priority). |
static java.lang.String |
getStandardWarning(int warning)
Get the standard CCPP reason phrase for the given warning code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Request getHTTPRequest()
public static java.lang.String getStandardWarning(int warning)
warning
- The given warning code.
public java.lang.String getCCPPHeaderValue(java.lang.String header)
request
- the HTTP Requestheader
- the header name (ie "Profile")
public java.lang.String getProfileDiff(int diffnumber)
request
- the HTTP Requestdiffnumber
- the diff numberpublic ProfileRef[] getProfileReferences()
ProfileRef
public static CCPPRequest getCCPPRequest(Request request)
request
- the HTTP Request
protected Reply acknowledge(Reply reply)
reply
- the reply
public void addWarning(Reply reply, int warning, java.lang.String reference)
reply
- the HTTP Replywarning
- the CC/PP Warning codereference
- the Profile reference
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |