public class SugestioResult<T>
extends java.lang.Object
Constructor and Description |
---|
SugestioResult(StatusType statusType) |
Modifier and Type | Method and Description |
---|---|
T |
getEntity() |
java.lang.String |
getMessage()
Contains the textual response from the server (if any),
or a problem description in case of a local error.
|
StatusType |
getStatusType()
The response status received from the server.
|
java.net.URI |
getUri() |
SugestioClient.Verb |
getVerb() |
boolean |
isOK()
Indicates if the request was succesful.
|
void |
printReport()
Prints a full report of this service request.
|
void |
printReport(java.io.PrintStream ps)
Sends a full report of this service request to a PrintStream
|
void |
setEntity(T entity) |
void |
setMessage(java.lang.String message) |
void |
setUri(java.net.URI uri) |
void |
setVerb(SugestioClient.Verb verb) |
public StatusType getStatusType()
public boolean isOK()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to setpublic T getEntity()
public void setEntity(T entity)
entity
- the entity to setpublic java.net.URI getUri()
public void setUri(java.net.URI uri)
uri
- the URI to setpublic SugestioClient.Verb getVerb()
public void setVerb(SugestioClient.Verb verb)
verb
- the verb to setpublic void printReport()
public void printReport(java.io.PrintStream ps)
ps
- the PrintStream