org.abstracthorizon.danube.http.matcher
Class AbstractMatcher

java.lang.Object
  extended by org.abstracthorizon.danube.http.matcher.AbstractMatcher
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
Pattern, Prefix, WelcomeFile

public abstract class AbstractMatcher
extends Object
implements Matcher

Implementation of Matcher interface.

Author:
Daniel Sendula

Field Summary
protected  ConnectionHandler connectionHandler
          Param connection handler
protected  boolean stopOnMatch
          Default value is true
 
Constructor Summary
AbstractMatcher()
          Constructor
AbstractMatcher(ConnectionHandler connectionHandler)
          Constructor
AbstractMatcher(ConnectionHandler connectionHandler, boolean stopOnMatch)
          Constructor
 
Method Summary
 ConnectionHandler getConnectionHandler()
          Returns connection handler
 boolean isStopOnMatch()
          Returns if matching should stop with this one if positive
 void setConnectionHandler(ConnectionHandler connectionHandler)
          Sets connection handler
 void setStopOnMatch(boolean stopOnMatch)
          Sets if matching should stop with this one if positive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.abstracthorizon.danube.http.matcher.Matcher
adjustForInvocation, matches
 

Field Detail

connectionHandler

protected ConnectionHandler connectionHandler
Param connection handler


stopOnMatch

protected boolean stopOnMatch
Default value is true

Constructor Detail

AbstractMatcher

public AbstractMatcher()
Constructor


AbstractMatcher

public AbstractMatcher(ConnectionHandler connectionHandler)
Constructor

Parameters:
connectionHandler - connection handler

AbstractMatcher

public AbstractMatcher(ConnectionHandler connectionHandler,
                       boolean stopOnMatch)
Constructor

Parameters:
connectionHandler - connection handler
stopOnMatch - stop on match
Method Detail

getConnectionHandler

public ConnectionHandler getConnectionHandler()
Returns connection handler

Specified by:
getConnectionHandler in interface Matcher
Returns:
connection handler

setConnectionHandler

public void setConnectionHandler(ConnectionHandler connectionHandler)
Sets connection handler

Parameters:
connectionHandler -

isStopOnMatch

public boolean isStopOnMatch()
Returns if matching should stop with this one if positive

Specified by:
isStopOnMatch in interface Matcher
Returns:
if matching should stop with this one if positive

setStopOnMatch

public void setStopOnMatch(boolean stopOnMatch)
Sets if matching should stop with this one if positive

Parameters:
stopOnMatch - true if matching should stop with this one if positive


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.