public class GenericPersistentClient
extends java.lang.Object
Constructor and Description |
---|
GenericPersistentClient() |
Modifier and Type | Method and Description |
---|---|
GenericClientResponse |
askServerPersistent(java.io.InputStream data) |
GenericClientResponse |
askServerPersistent(java.io.InputStream data,
int chunkSize)
Ask the ICAP server to process content.
|
void |
closeServer(java.net.Socket aSocket) |
int |
getDefaultPort() |
int |
getFirstReadTimeout() |
int |
getSecondReadTimeout() |
java.lang.String |
getServerhostname() |
void |
setAllow204() |
void |
setAllowCleanedContent() |
void |
setChunkSize(int chunkSize) |
void |
setDefaultPort(int defaultPort) |
void |
setFirstReadTimeout(int i) |
void |
setSecondReadTimeout(int i) |
void |
setServerhostname(java.lang.String serverhostname) |
public int getDefaultPort()
public void setDefaultPort(int defaultPort)
public java.lang.String getServerhostname()
public void setServerhostname(java.lang.String serverhostname)
public int getFirstReadTimeout()
public int getSecondReadTimeout()
public void setFirstReadTimeout(int i)
public void setSecondReadTimeout(int i)
public GenericClientResponse askServerPersistent(java.io.InputStream data, int chunkSize) throws java.io.IOException, java.net.ConnectException
chunkSize
- size of each HTTP-chunkjava.io.IOException
java.net.ConnectException
public void closeServer(java.net.Socket aSocket)
public void setChunkSize(int chunkSize)
public void setAllowCleanedContent()
public void setAllow204()
public GenericClientResponse askServerPersistent(java.io.InputStream data) throws java.io.IOException
java.io.IOException