|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jersey.api.client.UniformInterfaceException
public class UniformInterfaceException
A runtime exception thrown by a method on the UniformInterface or
ClientResponse when the status code of the HTTP response indicates
a response that is not expected.
| Constructor Summary | |
|---|---|
UniformInterfaceException(ClientResponse r)
Construct a uniform interface exception. |
|
UniformInterfaceException(ClientResponse r,
boolean bufferResponseEntity)
Construct a uniform interface exception. |
|
UniformInterfaceException(java.lang.String message,
ClientResponse r)
Construct a uniform interface exception. |
|
UniformInterfaceException(java.lang.String message,
ClientResponse r,
boolean bufferResponseEntity)
Construct a uniform interface exception. |
|
| Method Summary | |
|---|---|
ClientResponse |
getResponse()
Get the client response assocatiated with the exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UniformInterfaceException(ClientResponse r)
The client response entity will be buffered by calling
ClientResponse.bufferEntity().
r - the client response. The message of the exception is set to
r.toString();
public UniformInterfaceException(ClientResponse r,
boolean bufferResponseEntity)
r - the client response. The message of the exception is set to
r.toString();bufferResponseEntity - if true buffer the client response entity by calling
ClientResponse.bufferEntity().
public UniformInterfaceException(java.lang.String message,
ClientResponse r)
The client response entity will be buffered by calling
ClientResponse.bufferEntity().
message - the message of the exception.r - the client response.
public UniformInterfaceException(java.lang.String message,
ClientResponse r,
boolean bufferResponseEntity)
message - the message of the exception.r - the client response.bufferResponseEntity - if true buffer the client response entity by calling
ClientResponse.bufferEntity().| Method Detail |
|---|
public ClientResponse getResponse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||