Package com.pingidentity.pd.http
Class PwnedV2Servlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.pingidentity.pd.http.PwnedV2Servlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class PwnedV2Servlet extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Integer
CACHE_IN_DAYS
static String
DEFLATE_ENCODING
static String
ENCODING_HEADER
static String
GZIP_ENCODING
static String
NO_ENCODING
static String
TIMEZONE
-
Constructor Summary
Constructors Constructor Description PwnedV2Servlet(com.unboundid.directory.sdk.common.types.ServerContext serverContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Handle the Get like HaveIBeenPwned.com Range queryvoid
doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles the necessary processing to make the API a little self-explanatory.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
TIMEZONE
public static final String TIMEZONE
- See Also:
- Constant Field Values
-
CACHE_IN_DAYS
public static final Integer CACHE_IN_DAYS
-
NO_ENCODING
public static final String NO_ENCODING
- See Also:
- Constant Field Values
-
GZIP_ENCODING
public static final String GZIP_ENCODING
- See Also:
- Constant Field Values
-
DEFLATE_ENCODING
public static final String DEFLATE_ENCODING
- See Also:
- Constant Field Values
-
ENCODING_HEADER
public static final String ENCODING_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
doOptions
public void doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles the necessary processing to make the API a little self-explanatory. By querying OPTIONS, a client may discover what HTTP verbs are supported- Overrides:
doOptions
in classjavax.servlet.http.HttpServlet
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
Handle the Get like HaveIBeenPwned.com Range query- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Parameters:
req
- the requestresp
- the response- Throws:
IOException
- if the response cannot be written
-
-