Abstract HTTP basic authentication servlet class
The gw.servlet.AbstractBasicAuthenticationServlet
class extends AbstractGWAuthServlet
to support HTTP Basic authentication.
Your main task is to override the method for the HTTP request that your servlet handles to do your required work. PolicyCenter authenticates using the HTTP basic authentication headers before calling this method.
Also, override the isAuthenticationRequired method
and return true if this
request requires authentication. You can use methods on the ServletUtils class to check the
current authentication status of the session.
You can implement the following HTTP methods in your servlet class that extends the AbstractBasicAuthenticationServlet class:
doDelete– Handles an HTTPDELETErequest.doGet– Handles an HTTPGETrequest.doPost– Handles an HTTPPOSTrequest.doPut– Handles an HTTPPUTrequest.
For full documentation on the HTTPServlet class, refer to this Oracle Javadoc page:
http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServlet.html
