|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 interfaceParseSax.Factory
static classParseSax.HandlerForGeneratedRequestWithResult<T>
static classParseSax.HandlerWithResult<T>
Handler that produces a useable domain object accessible after parsing completes.
Constructor Summary
ParseSax(XMLReader parser,
ParseSax.HandlerWithResult<T> handler)
Method Summary
TaddDetailsAndPropagate(HttpResponse response,
Exception e)
Tapply(HttpResponse from)
protected TdoParse(InputSource from)
ParseSax.HandlerWithResult<T>getHandler()
Tparse(InputSource from)
Tparse(InputStream from)
Tparse(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
@Inject
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)
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-2011 jclouds. All Rights Reserved.