|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sugestio.client.SugestioResult<T>
public class SugestioResult<T>
Constructor Summary | |
---|---|
SugestioResult(boolean ok)
|
|
SugestioResult(javax.ws.rs.core.Response.StatusType statusType)
|
Method Summary | |
---|---|
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. |
javax.ws.rs.core.Response.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SugestioResult(javax.ws.rs.core.Response.StatusType statusType)
public SugestioResult(boolean ok)
Method Detail |
---|
public javax.ws.rs.core.Response.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |