org.abstracthorizon.danube.http.matcher
Interface Matcher

All Known Implementing Classes:
AbstractMatcher, Pattern, Prefix, WelcomeFile

public interface Matcher

This interface defines matcher for Selector class.

Author:
Daniel Sendula

Method Summary
 void adjustForInvocation(HTTPConnection connection)
          Adjusts connection for nested connection handler to be invoked
 ConnectionHandler getConnectionHandler()
          Returns stored ConnectionHandler
 boolean isStopOnMatch()
          Returns true if no other ConnectionHandler should be processed after this one
 boolean matches(HTTPConnection connection)
          Returns true if uri from connection is matched
 

Method Detail

getConnectionHandler

ConnectionHandler getConnectionHandler()
Returns stored ConnectionHandler

Returns:
stored ConnectionHandler

isStopOnMatch

boolean isStopOnMatch()
Returns true if no other ConnectionHandler should be processed after this one

Returns:
true if no other ConnectionHandler should be processed after this one

matches

boolean matches(HTTPConnection connection)
Returns true if uri from connection is matched

Parameters:
connection - http connection
Returns:
true if uri from connection is matched

adjustForInvocation

void adjustForInvocation(HTTPConnection connection)
Adjusts connection for nested connection handler to be invoked

Parameters:
connection - connection to be a used


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