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 .
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).
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).
setMaxKeepAliveRequests(int mkar) Set the maximum number of Keep-Alive requests to honor.
This is to safeguard from DoS attacks.
public void
setMaxSavePostSize(int msps) Set the maximum size of a POST which will be buffered in SSL mode.
public void
setNoCompressionUserAgents(Pattern[] 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).
setRestrictedUserAgents(Pattern[] 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).
Send an action to the connector.
Parameters: actionCode - Type of the action Parameters: param - Action parameter
addCompressableMimeType
public void addCompressableMimeType(String mimeType)(Code)
Add a mime-type which will be compressable
The mime-type String will be exactly matched
in the response mime-type header .
Parameters: mimeType - mime-type string
Add an input filter to the current request.
false if the encoding was not found (which would mean it isunsupported)
addNoCompressionUserAgent
public void addNoCompressionUserAgent(String userAgent)(Code)
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.
Parameters: userAgent - user-agent string
addRestrictedUserAgent
public void addRestrictedUserAgent(String userAgent)(Code)
Add restricted user-agent (which will downgrade the connector
to HTTP/1.0 mode). The user agent String given will be matched
via regexp to the user-agent header submitted by the client.
Parameters: userAgent - user-agent string
Set the associated adapter.
Parameters: adapter - the new adapter
setCompressableMimeTypes
public void setCompressableMimeTypes(String[] compressableMimeTypes)(Code)
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).
setCompressableMimeTypes
public void setCompressableMimeTypes(String compressableMimeTypes)(Code)
Set compressable mime-type list
List contains users agents separated by ',' :
ie: "text/html,text/xml,text/plain"
setCompression
public void setCompression(String compression)(Code)
Set compression level.
setCompressionMinSize
public void setCompressionMinSize(int compressionMinSize)(Code)
Set Minimum size to trigger compression.
setDisableUploadTimeout
public void setDisableUploadTimeout(boolean isDisabled)(Code)
Set the flag to control upload time-outs.
setMaxKeepAliveRequests
public void setMaxKeepAliveRequests(int mkar)(Code)
Set the maximum number of Keep-Alive requests to honor.
This is to safeguard from DoS attacks. Setting to a negative
value disables the check.
Set the maximum size of a POST which will be buffered in SSL mode.
setNoCompressionUserAgents
public void setNoCompressionUserAgents(Pattern[] noCompressionUserAgents)(Code)
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).
setNoCompressionUserAgents
public void setNoCompressionUserAgents(String noCompressionUserAgents)(Code)
Set no compression user agent list.
List contains users agents separated by ',' :
ie: "gorilla,desesplorer,tigrus"
setRestrictedUserAgents
public void setRestrictedUserAgents(Pattern[] restrictedUserAgents)(Code)
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).
setRestrictedUserAgents
public void setRestrictedUserAgents(String restrictedUserAgents)(Code)
Set restricted user agent list (which will downgrade the connector
to HTTP/1.0 mode). List contains users agents separated by ',' :
ie: "gorilla,desesplorer,tigrus"