public abstract class PrePostImageCollector extends ImageCollector
| Constructor and Description |
|---|
PrePostImageCollector(CombineImageUrl ciu,
int maxResponseTime,
org.apache.commons.httpclient.HttpClient client,
javax.servlet.http.HttpServletRequest req) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBody() |
protected abstract String |
getUrlFromXML(String returnXML)
Recieve the url from the xml.
|
protected BufferedImage |
loadImage(String url,
String user,
String pass)
Load the image with a http-get
|
void |
setBody(String body) |
call, getBufferedImage, getCombinedImageUrl, getMaxResponseTime, getMessage, getPassword, getRealUrl, getStatus, getUrl, getUsername, setBufferedImage, setCombineImageUrl, setMaxResponseTime, setMessage, setPassword, setStatus, setUsernamepublic PrePostImageCollector(CombineImageUrl ciu, int maxResponseTime, org.apache.commons.httpclient.HttpClient client, javax.servlet.http.HttpServletRequest req)
protected BufferedImage loadImage(String url, String user, String pass) throws IOException, Exception
ImageCollectorloadImage in class ImageCollectorurl - The url to the imageuser - usernamepass - passwordIOException - if anyException - if anypublic String getBody()
public void setBody(String body)
protected abstract String getUrlFromXML(String returnXML) throws XPathExpressionException, org.jdom.JDOMException, IOException
returnXML - The xml that is recieved bij doing a post requestXPathExpressionException - if anyorg.jdom.JDOMException - if anyIOException - if anyCopyright © 2017. All rights reserved.