|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.agents.pra.server.http.HttpReplyHdr
public class HttpReplyHdr
Generates a http reply header. The header indicates the outcome of a http request.
Constructor Summary | |
---|---|
HttpReplyHdr()
|
Method Summary | |
---|---|
boolean |
addErrorDescription(String str)
Adds an extra explanation. |
String |
formAccepted()
Indicates the document was accepted. |
String |
formCreated()
Indicates a new file was created. |
String |
formForbidden()
Client if forbidden to get the request service. |
String |
formFound()
Never seen this used. |
String |
formInternalError()
The server had a problem and could not fulfill the request. |
String |
formMethod()
The requested method is not implemented by the server. |
String |
formMoved()
Indicates a requested URL has moved to a new address or name. |
String |
formNotFound()
The requested object was not found. |
String |
formNotImplemented()
Server does not do the requested feature. |
String |
formNotModified()
Indicates remote copy of the requested object is current. |
String |
formOk(String ContentType,
long ContentLength)
Forms a http ok reply header |
String |
formOverloaded()
Server is overloaded, client should try again latter. |
String |
formPartial()
Indicates only a partial responce was sent. |
String |
formPaymentNeeded()
Payment is required for service. |
String |
formServerNotFound()
Indicates the client's proxies could not locate a server. |
String |
formTimeout()
Indicates the request took to long. |
String |
formUnautorized()
Client not otherized for the request. |
boolean |
setModifiedDate(String date)
Sets the last modified date for a header; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpReplyHdr()
Method Detail |
---|
public boolean setModifiedDate(String date)
date
- A string holding an interner date
public boolean addErrorDescription(String str)
str
- Description to add.
public String formOk(String ContentType, long ContentLength)
ContentType
- The mime-type of the content
public String formCreated()
public String formAccepted()
public String formPartial()
public String formMoved()
public String formFound()
public String formMethod()
public String formNotModified()
public String formUnautorized()
public String formPaymentNeeded()
public String formForbidden()
public String formNotFound()
public String formInternalError()
public String formNotImplemented()
public String formOverloaded()
public String formTimeout()
public String formServerNotFound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |