public static interface RestCsrfPreventionFilter.HttpInteraction
RestCsrfPreventionFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) method.
Applications that do run inside a servlet container will not need to write
code that uses this interface. Instead, they can use typical servlet
container configuration mechanisms to insert the filter.| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String header)
Returns the value of a header.
|
String |
getMethod()
Returns the method.
|
void |
proceed()
Called by the filter after it decides that the request may proceed.
|
void |
sendError(int code,
String message)
Called by the filter after it decides that the request is a potential
CSRF attack and therefore must be rejected.
|
String getHeader(String header)
header - name of headerString getMethod()
void proceed()
throws IOException,
javax.servlet.ServletException
IOException - if there is an I/O errorjavax.servlet.ServletException - if the implementation relies on the servlet API
and a servlet API call has failedvoid sendError(int code,
String message)
throws IOException
code - status code to sendmessage - response messageIOException - if there is an I/O errorCopyright © 2008–2022 Apache Software Foundation. All rights reserved.