public class ImageCollector extends Object implements Callable<ImageCollector>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE |
protected org.apache.commons.httpclient.HttpClient |
client |
static int |
COMPLETED |
static int |
ERROR |
static int |
NEW |
static int |
WARNING |
| Constructor and Description |
|---|
ImageCollector(CombineImageUrl ciu,
int maxResponseTime,
org.apache.commons.httpclient.HttpClient client,
javax.servlet.http.HttpServletRequest req) |
ImageCollector(CombineImageUrl ciu,
int maxResponseTime,
org.apache.commons.httpclient.HttpClient client,
String uname,
String pw,
javax.servlet.http.HttpServletRequest req) |
| Modifier and Type | Method and Description |
|---|---|
ImageCollector |
call() |
BufferedImage |
getBufferedImage() |
CombineImageUrl |
getCombinedImageUrl() |
int |
getMaxResponseTime() |
String |
getMessage() |
String |
getPassword() |
URL |
getRealUrl() |
int |
getStatus() |
String |
getUrl() |
String |
getUsername() |
protected BufferedImage |
loadImage(String url,
String user,
String pass)
Load the image with a http-get
|
void |
setBufferedImage(BufferedImage bufferedImage) |
void |
setCombineImageUrl(CombineImageUrl ciu) |
void |
setMaxResponseTime(int maxResponseTime) |
void |
setMessage(String message) |
void |
setPassword(String password) |
void |
setStatus(int status) |
void |
setUsername(String username) |
public static final int NEW
public static final int ACTIVE
public static final int COMPLETED
public static final int WARNING
public static final int ERROR
protected org.apache.commons.httpclient.HttpClient client
public ImageCollector(CombineImageUrl ciu, int maxResponseTime, org.apache.commons.httpclient.HttpClient client, javax.servlet.http.HttpServletRequest req)
public ImageCollector(CombineImageUrl ciu, int maxResponseTime, org.apache.commons.httpclient.HttpClient client, String uname, String pw, javax.servlet.http.HttpServletRequest req)
public ImageCollector call() throws Exception
call in interface Callable<ImageCollector>Exceptionprotected BufferedImage loadImage(String url, String user, String pass) throws IOException, Exception
url - The url to the imageuser - usernamepass - passwordIOException - if anyException - if anypublic String getUrl()
public URL getRealUrl()
public BufferedImage getBufferedImage()
public void setBufferedImage(BufferedImage bufferedImage)
public int getStatus()
public void setStatus(int status)
public String getMessage()
public void setMessage(String message)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public int getMaxResponseTime()
public void setMaxResponseTime(int maxResponseTime)
public CombineImageUrl getCombinedImageUrl()
public void setCombineImageUrl(CombineImageUrl ciu)
Copyright © 2016. All rights reserved.