Package org.jclouds.http.functions
Class ParseSax<T>
java.lang.Object
org.jclouds.http.functions.ParseSax<T>
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,
,T> Function<HttpResponse,
,T> InvocationContext<ParseSax<T>>
public class ParseSax<T>
extends Object
implements com.google.common.base.Function<HttpResponse,T>, InvocationContext<ParseSax<T>>
This object will parse the body of an HttpResponse and return the result of type back to the
caller.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
Handler that produces a useable domain object accessible after parsing completes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDetailsAndPropagate
(HttpResponse response, Exception e) addDetailsAndPropagate
(HttpResponse response, Exception e, String text) apply
(HttpResponse from) protected T
doParse
(InputSource from) parse
(InputStream from) parse
(InputSource from) setContext
(HttpRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
ParseSax
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,
T> - Specified by:
apply
in interfaceFunction<HttpResponse,
T>
-
parse
-
parse
-
parse
-
doParse
- Throws:
IOException
SAXException
-
addDetailsAndPropagate
-
addDetailsAndPropagate
-
getHandler
-
setContext
- Specified by:
setContext
in interfaceInvocationContext<T>
-