IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.wsspi.classify
RuleParser

All Implemented Interfaces
     RuleLanguage


The classifications rules language processor is built on top of the MatchSpace technology. This implies that the language used to express the rules is that of Java Message Service (JMS 1.1), in particular, the Message Selector Syntax which is an SQL92 SELECT statement's where clause without the WHERE or HAVING keyword. For example, where a typical SELECT WHERE clause would be expressed as
 WHERE ip IN ('100.100.100.1','100.100.200.1','100.100.300.1') AND protocol='HTTP'
 
in JMS 1.1 Message Selector Syntax construct, the expression will be
 ip IN ('100.100.100.1','100.100.200.1','100.100.300.1') AND protocol='HTTP'
 

The functions encapsulated by this interface are:



Inherited Fields

Fields inherited from com.ibm.wsspi.classify.ClassificationDictionary
AND, BETWEEN, CLIENT_HOST, CLIENT_IPV4, CLIENT_IPV6, COOKIE_NAME_SPACE, DURATION, EJB_METHOD, EJB_SCOPE, END_DATE, EQUAL, ESCAPE_CHAR, GID, GREATER_THAN, GREATER_THAN_OR_EQUAL, HEADER_NAME_SPACE, HTTP_DELETE, HTTP_GET, HTTP_METHOD, HTTP_POST, HTTP_PROTOCOL, HTTP_PUT, HTTPS_PROTOCOL, IIOP_PROTOCOL, IN, IS_NOT_NULL, IS_NULL, JMS_NAME_SPACE, JMS_PROTOCOL, JMS_TYPE, LESS_THAN, LESS_THAN_OR_EQUAL, LIKE, MIME_TYPE, NAME, NOT, NOT_EQUAL, OR, PORT, PROTOCOL, QUERYPARM_NAME_SPACE, SEPARATOR, SERVER_HOST, SERVER_IPV4, SERVER_IPV6, SOAP_ACTION, SOAP_NAME_SPACE, SOAP_PROTOCOL, START_DATE, TERMINATOR, UID, URI, VALUE, WEB_SCOPE, WEB_SERVICES_SCOPE, WSDL_INPUT, WSDL_OPERATION, WSDL_PORT_TYPE_NAME

Method Summary
public  voidvalidateExpression(com.ibm.ws.classify.Expression)
           Validates a given rule against the JMS 1.1 Message Selector Syntax. If errors are .
public  voidvalidateExpression(java.lang.String)
           Validates a given rule against the JMS Message Selector Syntax. If errors are .
public  ExpressiongetExpression(java.lang.String)
           Breaks a complex expression into its sub-expressions around the compound operators.

Inherited Methods

Methods inherited from com.ibm.wsspi.classify.RuleLanguage
getCompoundOperators, getOperands, getParser

Method Detail

validateExpression

public void validateExpression(Expression aExpression)
Validates a given rule against the JMS 1.1 Message Selector Syntax. If errors are encountered, an exception is thrown. The caller can then fix the errors identified before using the expression.
Parameters:
    aExpression - An Expression object to be validated.


Throws:
     RuleParserException


validateExpression

public void validateExpression(String aExpression)
Validates a given rule against the JMS Message Selector Syntax. If errors are encountered, an exception is thrown. The caller can then fix the errors identified before using the expression.
Parameters:
    aExpression - A string representing the rule expression.


Throws:
     RuleParserException


getExpression

public Expression getExpression(String aExpression)
Breaks a complex expression into its sub-expressions around the compound operators.
Parameters:
    aExpression - A string representing the expression.


Returns:
     Expression The Expression object.


Throws:
     RuleParserException


IBM WebSphere Extended Deployment (XD)TM
Release 6.0