|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.isis.viewer.restfulobjects.applib.RepresentationWalker
public class RepresentationWalker
| Constructor Summary | |
|---|---|
RepresentationWalker(RestfulClient restfulClient,
javax.ws.rs.core.Response response)
|
|
| Method Summary | |
|---|---|
JsonRepresentation |
getEntity()
The entity returned from the previous walk. |
String |
getError()
The error (if any) that occurred from the previous walk. |
Exception |
getException()
The exception (if any) that occurred from the previous walk. |
RestfulResponse<?> |
getResponse()
The response returned from the previous walk. |
void |
walk(String path)
|
void |
walk(String path,
JsonRepresentation invokeBody)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepresentationWalker(RestfulClient restfulClient,
javax.ws.rs.core.Response response)
| Method Detail |
|---|
public void walk(String path)
public void walk(String path,
JsonRepresentation invokeBody)
public JsonRepresentation getEntity()
throws org.codehaus.jackson.JsonParseException,
org.codehaus.jackson.map.JsonMappingException,
IOException
Will return null if the previous walk returned an error.
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOExceptionpublic RestfulResponse<?> getResponse()
Once a walk/performed has been attempted, is guaranteed to return a non-null value. (Conversely, will return null immediately after instantiation and prior to a walk being attempted/performed).
public String getError()
public Exception getException()
Will only ever be populated if getError() is non-null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||