public class D1RestServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected D1ResourceHandler |
handler |
protected org.apache.log4j.Logger |
logMetacat |
Constructor and Description |
---|
D1RestServlet() |
Modifier and Type | Method and Description |
---|---|
protected D1ResourceHandler |
createHandler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Subclasses should override this method to provide the appropriate handler subclass
|
protected void |
doDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "DELETE" method requests from HTTP clients
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "GET" method requests from HTTP clients
|
protected void |
doHead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "PUT" method requests from HTTP clients
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "POST" method requests from HTTP clients
|
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle "PUT" method requests from HTTP clients
|
void |
init(javax.servlet.ServletConfig config)
Initalize servlet by setting logger
|
doOptions, doTrace, getLastModified, service, service
protected org.apache.log4j.Logger logMetacat
protected D1ResourceHandler handler
protected D1ResourceHandler createHandler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- response
- javax.servlet.ServletException
java.io.IOException
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doDelete
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doHead
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
Copyright © 2020 Regents of the University of California. All Rights Reserved.