Package org.owasp.csrfguard.servlet
Class JavaScriptServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.owasp.csrfguard.servlet.JavaScriptServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public final class JavaScriptServlet extends javax.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaScriptServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static Set<String>getJavascriptUris()whitelist the javascript servlet from csrf errorsstatic javax.servlet.ServletConfiggetStaticServletConfig()voidinit(javax.servlet.ServletConfig theServletConfig)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getStaticServletConfig
public static javax.servlet.ServletConfig getStaticServletConfig()
-
getJavascriptUris
public static Set<String> getJavascriptUris()
whitelist the javascript servlet from csrf errors- Returns:
- the javascriptUris
-
init
public void init(javax.servlet.ServletConfig theServletConfig)
- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
IOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
IOException
-
-