org.opennms.web.event
Class BaseAcknowledgeServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opennms.web.event.BaseAcknowledgeServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class BaseAcknowledgeServlet
extends javax.servlet.http.HttpServlet

Abstract BaseAcknowledgeServlet class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Field Summary
static String ACKNOWLEDGE_ACTION
          Constant ACKNOWLEDGE_ACTION="1"
protected  String redirectSuccess
          The URL to redirect the client to in case of success.
static String UNACKNOWLEDGE_ACTION
          Constant UNACKNOWLEDGE_ACTION="2"
 
Constructor Summary
BaseAcknowledgeServlet()
          Constructor for BaseAcknowledgeServlet.
 
Method Summary
protected  String getRedirectString(javax.servlet.http.HttpServletRequest request)
          Convenience method for dynamically creating the redirect URL if necessary.
 void init()
          Looks up the dispath.success parameter in the servlet's config.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, 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

ACKNOWLEDGE_ACTION

public static final String ACKNOWLEDGE_ACTION
Constant ACKNOWLEDGE_ACTION="1"

See Also:
Constant Field Values

UNACKNOWLEDGE_ACTION

public static final String UNACKNOWLEDGE_ACTION
Constant UNACKNOWLEDGE_ACTION="2"

See Also:
Constant Field Values

redirectSuccess

protected String redirectSuccess
The URL to redirect the client to in case of success.

Constructor Detail

BaseAcknowledgeServlet

public BaseAcknowledgeServlet()

Constructor for BaseAcknowledgeServlet.

Method Detail

init

public void init()
          throws javax.servlet.ServletException
Looks up the dispath.success parameter in the servlet's config. If not present, this servlet will throw an exception so it will be marked unavailable.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - if any.

getRedirectString

protected String getRedirectString(javax.servlet.http.HttpServletRequest request)
Convenience method for dynamically creating the redirect URL if necessary.

Parameters:
request - a HttpServletRequest object.
Returns:
a String object.


Copyright © 2011. All Rights Reserved.