Method Summary |
|
public void | action(ActionCode actionCode, Object param) Send an action to the connector. |
public void | addCompressableMimeType(String mimeType) Add a mime-type which will be compressable
The mime-type String will be exactly matched
in the response mime-type header . |
protected void | addFilter(String className) Add input or output filter. |
protected boolean | addInputFilter(InputFilter[] inputFilters, String encodingName) Add an input filter to the current request. |
public void | addNoCompressionUserAgent(String userAgent) Add user-agent for which gzip compression didn't works
The user agent String given will be exactly matched
to the user-agent header submitted by the client. |
public void | addRestrictedUserAgent(String userAgent) Add restricted user-agent (which will downgrade the connector
to HTTP/1.0 mode). |
protected int | findBytes(ByteChunk bc, byte[] b) Specialized utility method: find a sequence of lower case bytes inside
a ByteChunk. |
public String[] | findCompressableMimeTypes() Return the list of restricted user agents. |
public String[] | findRestrictedUserAgents() Return the list of restricted user agents. |
public Adapter | getAdapter() Get the associated adapter. |
public String | getCompression() Return compression level. |
public boolean | getDisableUploadTimeout() Get the flag that controls upload time-outs. |
public int | getMaxKeepAliveRequests() Return the number of Keep-Alive requests that we will honor. |
public int | getMaxPostSize() Return the maximum size of a POST which will be buffered in SSL mode. |
public Request | getRequest() Get the request associated with this processor. |
public int | getSocketBuffer() Get the socket buffer flag. |
public int | getTimeout() Get the upload timeout. |
protected void | initializeFilters() Initialize standard input and output filters. |
public void | parseHost(MessageBytes valueMB) Parse host. |
protected void | prepareRequest() After reading the request headers, we have to setup the request filters. |
protected void | prepareResponse() When committing the response, we have to validate the set of headers, as
well as setup the response filters. |
public void | process(InputStream input, OutputStream output) Process pipelined HTTP requests using the specified input and output
streams. |
public void | setAdapter(Adapter adapter) Set the associated adapter. |
public void | setCompressableMimeTypes(String[] compressableMimeTypes) Set compressable mime-type list (this method is best when used with
a large number of connectors, where it would be better to have all of
them referenced a single array). |
public void | setCompressableMimeTypes(String compressableMimeTypes) |
public void | setCompression(String compression) Set compression level. |
public void | setCompressionMinSize(int compressionMinSize) Set Minimum size to trigger compression. |
public void | setDisableUploadTimeout(boolean isDisabled) Set the flag to control upload time-outs. |
public void | setMaxKeepAliveRequests(int mkar) Set the maximum number of Keep-Alive requests to honor.
This is to safeguard from DoS attacks. |
public void | setMaxPostSize(int mps) Set the maximum size of a POST which will be buffered in SSL mode. |
public void | setNoCompressionUserAgents(RE[] noCompressionUserAgents) Set no compression user agent list (this method is best when used with
a large number of connectors, where it would be better to have all of
them referenced a single array). |
public void | setNoCompressionUserAgents(String noCompressionUserAgents) Set no compression user agent list. |
public void | setRestrictedUserAgents(RE[] restrictedUserAgents) Set restricted user agent list (this method is best when used with
a large number of connectors, where it would be better to have all of
them referenced a single array). |
public void | setRestrictedUserAgents(String restrictedUserAgents) Set restricted user agent list (which will downgrade the connector
to HTTP/1.0 mode). |
public void | setSSLSupport(SSLSupport sslSupport) Set the SSL information for this HTTP connection. |
public void | setSocket(Socket socket) Set the socket associated with this HTTP connection. |
public void | setSocketBuffer(int socketBuffer) Set the socket buffer flag. |
public void | setThreadPool(ThreadPool threadPool) |
public void | setTimeout(int timeouts) Set the upload timeout. |
protected boolean | statusDropsConnection(int status) Determine if we must drop the connection because of the HTTP status
code. |