|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.http.functions.ParseSax<T>
public class ParseSax<T>
This object will parse the body of an HttpResponse and return the result of type
Nested Class Summary
static interface
ParseSax.Factory
static class
ParseSax.HandlerForGeneratedRequestWithResult<T>
static class
ParseSax.HandlerWithResult<T>
Handler that produces a useable domain object accessible after parsing completes.
Constructor Summary
ParseSax(XMLReader parser,
ParseSax.HandlerWithResult<T> handler)
Method Summary
T
addDetailsAndPropagate(HttpResponse response,
Exception e)
T
addDetailsAndPropagate(HttpResponse response,
Exception e,
String text)
T
apply(HttpResponse from)
protected T
doParse(InputSource from)
ParseSax.HandlerWithResult<T>
getHandler()
T
parse(InputSource from)
T
parse(InputStream from)
T
parse(String from)
ParseSax<T>
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 Detail
ParseSax
public ParseSax(XMLReader parser,
ParseSax.HandlerWithResult<T> handler)
Method Detail
apply
public T apply(HttpResponse from)
apply
in interface com.google.common.base.Function<HttpResponse,T>
parse
public T parse(String from)
parse
public T parse(InputStream from)
parse
public T parse(InputSource from)
doParse
protected T doParse(InputSource from)
throws IOException,
SAXException
IOException
SAXException
addDetailsAndPropagate
public T addDetailsAndPropagate(HttpResponse response,
Exception e)
addDetailsAndPropagate
public T addDetailsAndPropagate(HttpResponse response,
Exception e,
@Nullable
String text)
getHandler
public ParseSax.HandlerWithResult<T> getHandler()
setContext
public ParseSax<T> setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseSax<T>>
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2012 jclouds. All Rights Reserved.