|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.base.DepositResponse
public class DepositResponse
Represents a deposit response. This holds the SWORD Entry element.
| Constructor Summary | |
|---|---|
DepositResponse(int httpResponse)
Create a new response with the specified http code. |
|
| Method Summary | |
|---|---|
SWORDEntry |
getEntry()
Get the SWORD Entry |
SWORDErrorDocument |
getErrorDocument()
Get the SWORD Entry as an error document |
int |
getHttpResponse()
Retrieve the HTTP Response code. |
String |
getLocation()
Retrieve the Location header. |
String |
marshall()
Marshall the data in the enclosed SWORD Entry. |
void |
setEntry(SWORDEntry entry)
Set the entry element for this response. |
void |
setHttpResponse(int httpResponse)
Set the HTTP Response code. |
void |
setLocation(String location)
Set the HTTP Location header. |
String |
toString()
Retrieve a string representation of this data. |
void |
unmarshall(String xml)
Unmarshall the specified XML data into a SWORD Entry. |
SwordValidationInfo |
unmarshall(String xml,
Properties validationContext)
|
void |
unmarshallErrorDocument(String xml)
|
SwordValidationInfo |
unmarshallErrorDocument(String xml,
Properties validationContext)
Unmarshall the specified XML data into a SWORD error document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DepositResponse(int httpResponse)
httpResponse - Response code.| Method Detail |
|---|
public void setEntry(SWORDEntry entry)
entry - The SWORD Entry.public SWORDEntry getEntry()
public SWORDErrorDocument getErrorDocument()
throws SWORDException
SWORDException - If this DespositResponse does not contain a
SWORDErrorDocumentTest. If this is thrown, then
the document stores an Entry.public int getHttpResponse()
public void setHttpResponse(int httpResponse)
httpResponse - The code.public String getLocation()
public void setLocation(String location)
location - The Location header.public String marshall()
public void unmarshall(String xml)
throws UnmarshallException
xml - The XML data as a string.
UnmarshallException - If there was an error unmarshalling the data.
public SwordValidationInfo unmarshall(String xml,
Properties validationContext)
throws UnmarshallException
UnmarshallException
public void unmarshallErrorDocument(String xml)
throws UnmarshallException
UnmarshallException
public SwordValidationInfo unmarshallErrorDocument(String xml,
Properties validationContext)
throws UnmarshallException
xml - The XML data as a string.
UnmarshallException - If there was an error unmarshalling the data.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||