dea.albums
Class BaseAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bydea.albums.BaseAction
All Implemented Interfaces:
IDebugLevels

public abstract class BaseAction
extends org.apache.struts.action.Action
implements IDebugLevels


Field Summary
 int aType
          Type of action - lets us know how the servlet was called by the server.
 Display display
          Get connection to display / log utils
 java.lang.String errorURL
          URL to go to if Exception caught
 java.lang.String nextURL
          URL to go to if all goes well
 HttpSession session
          holds pointer to the current session
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
BaseAction()
           
 
Method Summary
 void callPage(java.lang.String page, HttpServletRequest request, HttpServletResponse response)
          Display the output page
 void doDelete(HttpServletRequest request, HttpServletResponse response)
          Process the HTTP Delete requests.
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP GET requests.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Process incoming HTTP Post requests.
 void doPut(HttpServletRequest request, HttpServletResponse response)
          Process the HTTP Put requests.
 java.lang.String empty2Null(java.lang.String str)
          Process the HTTP Delete requests.
 void service(HttpServletRequest request, HttpServletResponse response)
          Process all incoming HTTP requests.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

public HttpSession session
holds pointer to the current session


nextURL

public java.lang.String nextURL
URL to go to if all goes well


errorURL

public java.lang.String errorURL
URL to go to if Exception caught


aType

public int aType
Type of action - lets us know how the servlet was called by the server. Here if we need to make ajustsments under other application servers like Websphere.


display

public Display display
Get connection to display / log utils

Constructor Detail

BaseAction

public BaseAction()
Method Detail

callPage

public void callPage(java.lang.String page,
                     HttpServletRequest request,
                     HttpServletResponse response)
Display the output page

Parameters:
request - javax.servlet.http.HttpServletRequest
response - javax.servlet.http.HttpServletResponse

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    java.io.IOException
Process all incoming HTTP requests. Note Get Post ect. are redirected here.

Parameters:
request - Object that encapsulates the request to the servlet
response - Object that encapsulates the response from the servlet
Throws:
ServletException
java.io.IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
Process incoming HTTP GET requests. Here for application server compatibility only calls service(request, response)

Parameters:
request - Object that encapsulates the request to the servlet
response - Object that encapsulates the response from the servlet
Throws:
ServletException
java.io.IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   java.io.IOException
Process incoming HTTP Post requests. Here for application server compatibility only calls service(request, response)

Parameters:
request - Object that encapsulates the request to the servlet
response - Object that encapsulates the response from the servlet
Throws:
ServletException
java.io.IOException

doPut

public void doPut(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
Process the HTTP Put requests. Here for application server compatibility only calls service(request, response)

Throws:
ServletException
java.io.IOException

doDelete

public void doDelete(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Process the HTTP Delete requests. Here for application server compatibility only calls service(request, response)

Throws:
ServletException
java.io.IOException

empty2Null

public java.lang.String empty2Null(java.lang.String str)
Process the HTTP Delete requests. Here for application server compatibility only calls service(request, response)



Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.