public class XBUrlIO extends Object implements CanEvaluate
| Constructor and Description |
|---|
XBUrlIO(XBProjector projector,
String url)
Constructor with defaults for request parameters.
|
| Modifier and Type | Method and Description |
|---|---|
XBUrlIO |
addRequestProperties(Map<String,String> params)
Allows to add some request properties.
|
XBUrlIO |
addRequestProperty(String name,
String value)
Allows to add a single request property.
|
XPathEvaluator |
evalXPath(String xpath) |
<T> T |
read(Class<T> projectionInterface)
Create a new projection using a given URL parameter.
|
String |
write(Object projection)
Post the projected document to a HTTP URL.
|
public XBUrlIO(XBProjector projector, String url)
projector - url - public <T> T read(Class<T> projectionInterface) throws IOException
projectionInterface - A Java interface to project the data on.IOExceptionpublic String write(Object projection) throws IOException
projection - IOExceptionpublic XBUrlIO addRequestProperties(Map<String,String> params)
params - public XBUrlIO addRequestProperty(String name, String value)
name - value - public XPathEvaluator evalXPath(String xpath)
evalXPath in interface CanEvaluatexpath - to be evaluated on inputCopyright © 2012-12-21-2017. All Rights Reserved.