|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.mkjsf.pazpar2.ClientCommandResponse
public class ClientCommandResponse
Contains one HTTP response to a command executed against a Pazpar2 service in such a way as to give the response parser a common interface to responses, whether they are from Pazpar2, from the Service Proxy, or are error messages created by the JSF application during processing.
Constructor Summary | |
---|---|
ClientCommandResponse(int statusCode,
byte[] content,
String contentType)
Used for storing Service Proxy based response |
|
ClientCommandResponse(int statusCode,
String content,
String contentType)
Used for storing error response |
|
ClientCommandResponse(com.indexdata.masterkey.pazpar2.client.Pazpar2HttpResponse pz2response,
ByteArrayOutputStream content)
Used for storing Pazpar2 based response |
Method Summary | |
---|---|
byte[] |
getBytes()
|
String |
getContentType()
|
String |
getResponseString()
Gets the response as a String - unless the response is marked as binary |
byte[] |
getResponseToParse()
Used by the parser to get the response for further processing. |
int |
getStatusCode()
|
boolean |
isBinary()
|
void |
setResponseToParse(String parseString)
Overrides the original response with a modified response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientCommandResponse(com.indexdata.masterkey.pazpar2.client.Pazpar2HttpResponse pz2response, ByteArrayOutputStream content)
pz2response
- content
- public ClientCommandResponse(int statusCode, String content, String contentType)
statusCode
- content
- contentType
- public ClientCommandResponse(int statusCode, byte[] content, String contentType)
statusCode
- content
- contentType
- Method Detail |
---|
public int getStatusCode()
getStatusCode
in interface HttpResponseWrapper
public String getContentType()
getContentType
in interface HttpResponseWrapper
public String getResponseString()
getResponseString
in interface HttpResponseWrapper
public byte[] getBytes()
getBytes
in interface HttpResponseWrapper
public void setResponseToParse(String parseString)
parseString
- public byte[] getResponseToParse()
public boolean isBinary()
isBinary
in interface HttpResponseWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |