org.dspace.app.webui.servlet
Class MyDSpaceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.dspace.app.webui.servlet.DSpaceServlet
              extended by org.dspace.app.webui.servlet.MyDSpaceServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MyDSpaceServlet
extends DSpaceServlet

Servlet for constructing the components of the "My DSpace" page

Version:
$Id$
Author:
Robert Tansley, Jay Paz
See Also:
Serialized Form

Field Summary
static int MAIN_PAGE
          The main screen
static int PERFORM_TASK_PAGE
          The perform task page
static int PREVIEW_TASK_PAGE
          The preview task page
static int REJECT_REASON_PAGE
          The "reason for rejection" page
static int REMOVE_ITEM_PAGE
          The remove item page
static int REQUEST_EXPORT_ARCHIVE
          The "request export archive for download" page
static int REQUEST_MIGRATE_ARCHIVE
          The "request export migrate archive for download" page
 
Constructor Summary
MyDSpaceServlet()
           
 
Method Summary
protected  void doDSGet(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming HTTP GET.
protected  void doDSPost(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process an incoming HTTP POST.
protected  void processMainPage(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.dspace.app.webui.servlet.DSpaceServlet
doGet, doPost
 
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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_PAGE

public static final int MAIN_PAGE
The main screen

See Also:
Constant Field Values

REMOVE_ITEM_PAGE

public static final int REMOVE_ITEM_PAGE
The remove item page

See Also:
Constant Field Values

PREVIEW_TASK_PAGE

public static final int PREVIEW_TASK_PAGE
The preview task page

See Also:
Constant Field Values

PERFORM_TASK_PAGE

public static final int PERFORM_TASK_PAGE
The perform task page

See Also:
Constant Field Values

REJECT_REASON_PAGE

public static final int REJECT_REASON_PAGE
The "reason for rejection" page

See Also:
Constant Field Values

REQUEST_EXPORT_ARCHIVE

public static final int REQUEST_EXPORT_ARCHIVE
The "request export archive for download" page

See Also:
Constant Field Values

REQUEST_MIGRATE_ARCHIVE

public static final int REQUEST_MIGRATE_ARCHIVE
The "request export migrate archive for download" page

See Also:
Constant Field Values
Constructor Detail

MyDSpaceServlet

public MyDSpaceServlet()
Method Detail

doDSGet

protected void doDSGet(Context context,
                       javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException,
                       SQLException,
                       AuthorizeException
Description copied from class: DSpaceServlet
Process an incoming HTTP GET. If an exception is thrown, or for some other reason the passed in context is not completed, it will be aborted and any changes made by this method discarded when this method returns.

Overrides:
doDSGet in class DSpaceServlet
Parameters:
context - a DSpace Context object
request - the HTTP request
response - the HTTP response
Throws:
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException

doDSPost

protected void doDSPost(Context context,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws javax.servlet.ServletException,
                        IOException,
                        SQLException,
                        AuthorizeException
Description copied from class: DSpaceServlet
Process an incoming HTTP POST. If an exception is thrown, or for some other reason the passed in context is not completed, it will be aborted and any changes made by this method discarded when this method returns.

Overrides:
doDSPost in class DSpaceServlet
Parameters:
context - a DSpace Context object
request - the HTTP request
response - the HTTP response
Throws:
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException

processMainPage

protected void processMainPage(Context context,
                               javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException,
                               SQLException,
                               AuthorizeException
Throws:
javax.servlet.ServletException
IOException
SQLException
AuthorizeException


Copyright © 2013 DuraSpace. All Rights Reserved.