apollo
Class EntryAssertionManager

java.lang.Object
  |
  +--apollo.EntryAssertionManager

public class EntryAssertionManager
extends java.lang.Object


Constructor Summary
EntryAssertionManager(ManagerTracker MT)
           
EntryAssertionManager(ManagerTracker MT, java.util.Vector vecAcceptClause)
           
 
Method Summary
 void addAcceptClause(AcceptClause ac)
           
 void evaluate(HTTPRequest request)
           
 java.lang.String getAcceptName()
           
 boolean getBoolean(java.lang.String strVariableName)
           
 int getInt(java.lang.String strVariableName)
          Returns the variable as an int.
 java.lang.Integer getInteger(java.lang.String strVariableName)
          Returns the requested variable as an Integer.
 java.util.Enumeration getOptionalFailures()
           
 java.util.Enumeration getRequiredFailures()
           
 java.lang.String getString(java.lang.String strVariableName)
          Returns requested variable as a string.
 boolean isAccept(AcceptClause ac)
           
 boolean isAccept(java.lang.String s)
           
 void setVecAcceptStatement(java.util.Vector vecAcceptClause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryAssertionManager

public EntryAssertionManager(ManagerTracker MT)

EntryAssertionManager

public EntryAssertionManager(ManagerTracker MT,
                             java.util.Vector vecAcceptClause)
Method Detail

setVecAcceptStatement

public void setVecAcceptStatement(java.util.Vector vecAcceptClause)

addAcceptClause

public void addAcceptClause(AcceptClause ac)

getOptionalFailures

public java.util.Enumeration getOptionalFailures()

getRequiredFailures

public java.util.Enumeration getRequiredFailures()

evaluate

public void evaluate(HTTPRequest request)
              throws EntryAssertion

getAcceptName

public java.lang.String getAcceptName()

isAccept

public boolean isAccept(java.lang.String s)

isAccept

public boolean isAccept(AcceptClause ac)

getBoolean

public boolean getBoolean(java.lang.String strVariableName)

getInt

public int getInt(java.lang.String strVariableName)
           throws EntryException
Returns the variable as an int. You cannot use this function on Variables which were not declared as required, or Optional with a default value. (This is because you can't return null to an int). If your value was undeclared, and you had no default value, you will get an exception. Use getInteger for your test, not getInt
Throws:
EntryException - Thrown if you attempt to fetch a variable which you did not declare

getInteger

public java.lang.Integer getInteger(java.lang.String strVariableName)
                             throws EntryException
Returns the requested variable as an Integer. Remember you can only fetch variables you declared in your accept clause. If you declared the variable you are trying to fetch as a STRING, a realtime conversion to an Integer will be attempted. It is optimial to declare INTs and INTs, a warning will be printed to the EAM_DEBUG channel if you do this.
Throws:
EntryException - Thrown if you attempt to fetch a variable which you did not declare

getString

public java.lang.String getString(java.lang.String strVariableName)
                           throws EntryException
Returns requested variable as a string. If it was declared as an INT, it will be converted to a String
Throws:
EntryException - Thrown if you attempt to fetch a variable which you did not declare