|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.purl.sword.server.DepositServlet
public class DepositServlet
DepositServlet
| Field Summary | |
|---|---|
protected SWORDServer |
myRepository
Sword repository |
| Constructor Summary | |
|---|---|
DepositServlet()
|
|
| Method Summary | |
|---|---|
protected boolean |
authenticateWithBasic()
Utility method to decide if we are using HTTP Basic authentication |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the Get request. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process a post request. |
protected static String |
getUrl(javax.servlet.http.HttpServletRequest req)
Utility method to construct the URL called for this Servlet |
protected String |
getUsernamePassword(javax.servlet.http.HttpServletRequest request)
Utility method to return the username and password (separated by a colon ':') |
void |
init()
Initialise the servlet |
protected void |
makeErrorDocument(String errorURI,
int status,
String summary,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Utility method to construct a SWORDErrorDocumentTest |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SWORDServer myRepository
| Constructor Detail |
|---|
public DepositServlet()
| Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOException
protected void makeErrorDocument(String errorURI,
int status,
String summary,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
errorURI - The error URI to passstatus - The HTTP status to returnsummary - The textual description to give the userrequest - The HttpServletRequest objectresponse - The HttpServletResponse to send the error document to
IOExceptionprotected String getUsernamePassword(javax.servlet.http.HttpServletRequest request)
request -
protected boolean authenticateWithBasic()
protected static String getUrl(javax.servlet.http.HttpServletRequest req)
req - The request object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||