Class PatternRequestMatcher

  • All Implemented Interfaces:
    RequestMatcher
    Direct Known Subclasses:
    PatternProcessor

    public abstract class PatternRequestMatcher
    extends java.lang.Object
    implements RequestMatcher
    Created with IntelliJ IDEA. User: Sebastian MA Date: April 03, 2014 Time: 10:00

    A PatternHandler is in charge of both page extraction and data processing by implementing its two abstract methods.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String pattern
      match pattern.
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternRequestMatcher​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean match​(Request request)
      Check whether to process the page.

      Please DO NOT change page status in this method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        protected java.lang.String pattern
        match pattern. only matched page should be handled.
    • Constructor Detail

      • PatternRequestMatcher

        public PatternRequestMatcher​(java.lang.String pattern)
        Parameters:
        pattern - url pattern to handle
    • Method Detail

      • match

        public boolean match​(Request request)
        Description copied from interface: RequestMatcher
        Check whether to process the page.

        Please DO NOT change page status in this method.
        Specified by:
        match in interface RequestMatcher
        Parameters:
        request - page
        Returns:
        whether matches