public class OAIHandler
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
attributesMap |
Constructor and Description |
---|
OAIHandler() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Peform the http GET action.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform a POST action.
|
protected boolean |
filterRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override to do any pre-qualification; return false if the response should be
returned immediately, without further action.
|
java.util.HashMap |
getAttributes(java.util.Properties properties) |
java.util.HashMap |
getAttributes(java.lang.String pathInfo) |
static java.lang.String |
getResult(java.util.HashMap attributes,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.xml.transform.Transformer serverTransformer,
java.util.HashMap serverVerbs) |
static java.lang.String |
getVERSION()
Get the VERSION number
|
static java.io.Writer |
getWriter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get a response Writer depending on acceptable encodings
|
void |
init(javax.servlet.ServletConfig config)
init is called one time when the Servlet is loaded.
|
static boolean |
isIntegratedWithMetacat()
Boolean to determine whether the Data Provider code is executing in a
Metacat application.
|
protected boolean |
isServiceUnavailable(java.util.Properties properties)
Should the server report itself down for maintenance? Override this method
if you want to do this check another way.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static java.lang.String getVERSION()
public static boolean isIntegratedWithMetacat()
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
request
- the servlet's request informationresponse
- the servlet's response informationjava.io.IOException
- an I/O error occurredjavax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
request
- the servlet's request informationresponse
- the servlet's response informationjava.io.IOException
- an I/O error occurredjavax.servlet.ServletException
protected boolean filterRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- response
- public java.util.HashMap getAttributes(java.util.Properties properties) throws java.lang.Throwable
java.lang.Throwable
public java.util.HashMap getAttributes(java.lang.String pathInfo)
public static java.lang.String getResult(java.util.HashMap attributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.xml.transform.Transformer serverTransformer, java.util.HashMap serverVerbs) throws java.lang.Throwable
java.lang.Throwable
public static java.io.Writer getWriter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
request
- the servlet's request informationresponse
- the servlet's response informationjava.io.IOException
- an I/O error occurredpublic void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- servlet configuration informationjavax.servlet.ServletException
- there was a problem with initializationprotected boolean isServiceUnavailable(java.util.Properties properties)
properties
- Copyright © 2016 Regents of the University of California. All Rights Reserved.