Class RestCsrfPreventionFilter.ServletFilterHttpInteraction

java.lang.Object
org.apache.hadoop.hbase.rest.filter.RestCsrfPreventionFilter.ServletFilterHttpInteraction
All Implemented Interfaces:
RestCsrfPreventionFilter.HttpInteraction
Enclosing class:
RestCsrfPreventionFilter

RestCsrfPreventionFilter.HttpInteraction implementation for use in the servlet filter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final javax.servlet.FilterChain
     
    private final javax.servlet.http.HttpServletRequest
     
    private final javax.servlet.http.HttpServletResponse
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServletFilterHttpInteraction(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, javax.servlet.FilterChain chain)
    Creates a new ServletFilterHttpInteraction.
  • Method Summary

    Modifier and Type
    Method
    Description
    getHeader(String header)
    Returns the value of a header.
    Returns the method.
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait