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 interfacestatic classstatic classHandler 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 TdoParse(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, waitMethods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
ParseSax
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Function<HttpResponse,T> - Specified by:
applyin interfaceFunction<HttpResponse,T>
-
parse
-
parse
-
parse
-
doParse
- Throws:
IOExceptionSAXException
-
addDetailsAndPropagate
-
addDetailsAndPropagate
-
getHandler
-
setContext
- Specified by:
setContextin interfaceInvocationContext<T>
-