com.veriplace.client.factory
Class ResponseObjectFactory<T>
java.lang.Object
com.veriplace.client.factory.ResponseObjectFactory<T>
- Direct Known Subclasses:
- InvitationStatusFactory, LocationFactory, LocationRequestStatusFactory, LocationUpdatesFactory, TokenFactory, UserFactory, UserListFactory, UsersByPIIFactory
public abstract class ResponseObjectFactory<T>
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentFactory
protected final DocumentFactory documentFactory
ResponseObjectFactory
public ResponseObjectFactory()
parse
public T parse(Response response)
throws MalformedResponseException,
ResponseException
- Throws:
MalformedResponseException
ResponseException
parse
public T parse(java.lang.String contentType,
byte[] content)
throws MalformedResponseException,
ResponseException
- Throws:
MalformedResponseException
ResponseException
parseXml
protected T parseXml(ResponseObjectFactory.XmlHelper root)
throws MalformedResponseException,
ResponseException
- Throws:
MalformedResponseException
ResponseException
parseJson
protected T parseJson(ResponseObjectFactory.JsonHelper root)
throws MalformedResponseException,
ResponseException
- Throws:
MalformedResponseException
ResponseException
parseAny
protected T parseAny(ResponseObjectFactory.ParseHelper root)
throws MalformedResponseException,
ResponseException
- Throws:
MalformedResponseException
ResponseException
nullIfEmpty
protected static java.lang.String nullIfEmpty(java.lang.String s)
parseDateTime
protected static java.util.Date parseDateTime(java.lang.String dateTime)
throws MalformedResponseException
- Throws:
MalformedResponseException