|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpFilter
An interface to filters processing HTTP protocol requests.
| Field Summary | |
|---|---|
static String |
NO_CHARSET_PARAM
The optional no charset parameter of a default MIME type. |
| Method Summary | |
|---|---|
String |
getCharacterEncoding()
Gets the default character encoding for requests and responses if not explicitly specified. |
String |
getCharacterEncoding(Locale locale,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the default character encoding for a specific locale and request if not explicitly specified. |
String |
getContextPath()
Gets the external context path. |
int |
getMaxRequestLength()
Gets the maximum allowed length of the first line of the request. |
int |
getResponseBufferSize()
Gets the response buffer size. |
boolean |
isAbsoluteURLLinks()
Gets the absolute URL links option. |
boolean |
isFormDataParsed()
Gets the form data to be parsed as parameters option. |
boolean |
isPathInfoParsed()
Gets the path info to be parsed as parameters option. |
boolean |
isSessionCookiesDiscarded()
Checks whether session cookies are discarded. |
boolean |
isVaryingClientsPermitted()
Checks whether varying clients are permitted. |
void |
setAbsoluteURLLinks(boolean flag)
Sets the absolute URL links option to use absolute links for local addresses also. |
void |
setCharacterEncoding(String encoding)
Sets the default character encoding for requests and responses if not explicitly specified. |
void |
setContextPath(String path)
Sets the external context path. |
void |
setFormDataParsed(boolean flag)
Sets the form data to be parsed as parameters option. |
void |
setMaxRequestLength(int length)
Sets the maximum allowed length of the first line of the request. |
void |
setPathInfoParsed(boolean flag)
Sets the path info to be parsed as parameters option. |
void |
setResponseBufferSize(int size)
Sets the response buffer size. |
void |
setSessionCookiesDiscarded(boolean flag)
Sets whether session cookies are discarded. |
void |
setVaryingClientsPermitted(boolean flag)
Sets whether varying clients are permitted. |
| Methods inherited from interface javax.servlet.Filter |
|---|
destroy, doFilter, init |
| Field Detail |
|---|
static final String NO_CHARSET_PARAM
| Method Detail |
|---|
String getContextPath()
void setContextPath(String path)
The external context path may be applied in proxies and relays where the protocol filter can't parse the URI components correctly without hints.
path - the context path.boolean isAbsoluteURLLinks()
void setAbsoluteURLLinks(boolean flag)
flag - the absolute URL links option.boolean isVaryingClientsPermitted()
void setVaryingClientsPermitted(boolean flag)
Varying clients may change their IP address without losing their session as long as the session id remains valid.
flag - true if permitted, false otherwise.boolean isSessionCookiesDiscarded()
void setSessionCookiesDiscarded(boolean flag)
When session cookies are discarded the session id is encoded within the request URL.
flag - true if discarded, false otherwise.boolean isPathInfoParsed()
void setPathInfoParsed(boolean flag)
flag - the path info parsed option.boolean isFormDataParsed()
void setFormDataParsed(boolean flag)
flag - the form data parsed option.int getMaxRequestLength()
void setMaxRequestLength(int length)
length - the maximum length of the request.int getResponseBufferSize()
void setResponseBufferSize(int size)
size - the response buffer size.String getCharacterEncoding()
void setCharacterEncoding(String encoding)
throws UnsupportedEncodingException
encoding - the default character encoding.
UnsupportedEncodingException - if not supported.
String getCharacterEncoding(Locale locale,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Note that the default character encoding of this filter is returned if defined, otherwise one of the accepted charsets of the request corresponding to the specified locale.
locale - the locale to apply.request - the servlet request.response - the servlet response.chain - the filter chain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||