public abstract class HTTPRequest<Target,Result>
extends net.idea.modbcum.p.DefaultAmbitProcessor<Target,Result>
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
protected String |
httpMethod |
protected int |
maxretry |
protected int |
timeout |
protected String |
url |
Constructor and Description |
---|
HTTPRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getHttpMethod() |
int |
getTimeout() |
String |
getUrl() |
boolean |
isCancelled() |
protected abstract Result |
parseInput(Target target,
InputStream in) |
protected abstract void |
prepareOutput(Target target,
OutputStream out) |
Result |
process(Target target) |
void |
setCancelled(boolean cancelled) |
void |
setHttpMethod(String httpMethod) |
void |
setTimeout(int timeout) |
void |
setUrl(String url) |
protected int timeout
protected int maxretry
protected String url
protected String httpMethod
protected boolean cancelled
public int getTimeout()
public void setTimeout(int timeout)
public boolean isCancelled()
public void setCancelled(boolean cancelled)
public String getUrl()
public void setUrl(String url)
public Result process(Target target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
protected abstract void prepareOutput(Target target, OutputStream out) throws ProcessorException
ProcessorException
protected abstract Result parseInput(Target target, InputStream in) throws ProcessorException
ProcessorException
public String getHttpMethod()
public void setHttpMethod(String httpMethod)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.