|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.accesscontrol.ui.ExclusionResponse
public class ExclusionResponse
Abstraction for the result of an exclusion query, and generating the differentiating parts of an HTTP response. The original implementation returned XML. Without the XML, this class is really not needed, but as I suspect we'll return to an XML HTTML response in the future, including this for now.
| Field Summary | |
|---|---|
static java.lang.String |
EXLCUSION_AUTHORITATIVE
Reponse is considered "authoritative" |
static boolean |
EXLCUSION_AUTHORIZED
Response indicates that access is granted |
static java.lang.String |
EXLCUSION_NON_AUTHORITATIVE
Response is not "authoritative" -- some assumptions may have been made |
static boolean |
EXLCUSION_NOT_AUTHORIZED
Response indicates that access is not granted |
| Constructor Summary | |
|---|---|
ExclusionResponse(java.lang.String hostname,
java.lang.String responseType,
boolean authorized)
Constuctor |
|
ExclusionResponse(java.lang.String hostname,
java.lang.String responseType,
boolean authorized,
java.lang.String message)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentText()
|
java.lang.String |
getContentType()
|
java.lang.String |
getMessage()
|
boolean |
isAuthorized()
|
void |
writeResponse(java.io.OutputStream os)
Send the HTTP message body to requesting client, via the OutputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXLCUSION_AUTHORITATIVE
public static final java.lang.String EXLCUSION_NON_AUTHORITATIVE
public static final boolean EXLCUSION_AUTHORIZED
public static final boolean EXLCUSION_NOT_AUTHORIZED
| Constructor Detail |
|---|
public ExclusionResponse(java.lang.String hostname,
java.lang.String responseType,
boolean authorized,
java.lang.String message)
hostname - responseType - authorized - message -
public ExclusionResponse(java.lang.String hostname,
java.lang.String responseType,
boolean authorized)
hostname - responseType - authorized - | Method Detail |
|---|
public void writeResponse(java.io.OutputStream os)
os - public java.lang.String getContentType()
public java.lang.String getContentText()
public boolean isAuthorized()
public java.lang.String getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||