atg.droplet
Class Compare
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
atg.droplet.Compare
- All Implemented Interfaces:
- NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, ParameterServlet, java.util.EventListener, javax.servlet.Servlet
public class Compare
- extends DynamoServlet
The Compare servlet renders one of its oparms based on
the relative values of the obj1 and obj2 input
params. It takes as parameters:
- obj1
- the first object to be compared. the object must be
an instance of comparable. think of this object as the left
side of the equation or inequation. e.g. obj1 > obj2
- obj2
- the second object to be compared. the object must be
an instance of comparable. think of this object as the right
side of the equation or inequation. e.g. obj1 > obj2
It renders the following oparams:
- output
- In the output param, we set the param value which is the value
returned by calling compare(obj1, obj2), converted to a String.
- greaterthan
- This oparam is rendered if obj1 > obj2.
- lessthan
- This oparam is rendered if obj1 < obj2.
- equal
- This oparam is rendered if obj1 == obj2.
- noncomparable
- This oparam is rendered the objects cannot be compared.
- default
- This oparam is rendered if no other oparam has been handled, or if
either parameter is null.
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
OBJ1
public static final ParameterName OBJ1
OBJ2
public static final ParameterName OBJ2
DEFAULT
public static final ParameterName DEFAULT
EQUAL
public static final ParameterName EQUAL
GREATERTHAN
public static final ParameterName GREATERTHAN
LESSTHAN
public static final ParameterName LESSTHAN
NONCOMPARABLE
public static final ParameterName NONCOMPARABLE
Compare
public Compare()
service
public void service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
throws javax.servlet.ServletException,
java.io.IOException
- Render the Compare
- Overrides:
service
in class DynamoServlet
- Parameters:
pReq
- the request to be processedpRes
- the response object for this request
- Throws:
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.