org.jasen.core.parsers.handlers
Class SrcCgiTagHandler

java.lang.Object
  extended byorg.jasen.core.parsers.handlers.SrcCgiTagHandler
All Implemented Interfaces:
HTMLTagHandler
Direct Known Subclasses:
URLPortTagHandler

public class SrcCgiTagHandler
extends Object
implements HTMLTagHandler

Looks for source attributes of HTML tags which do not end in a known file type.

Author:
Jason Polites

Field Summary
 String CGI_URL_REGEX
           
 
Fields inherited from interface org.jasen.interfaces.HTMLTagHandler
MATCH, NOMATCH
 
Constructor Summary
SrcCgiTagHandler()
           
 
Method Summary
 int handleTag(HTML.Tag tag, AttributeSet attributes, HTMLTagHandlerResult result)
          Returns the status of the tag to the parser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CGI_URL_REGEX

public String CGI_URL_REGEX
Constructor Detail

SrcCgiTagHandler

public SrcCgiTagHandler()
Method Detail

handleTag

public int handleTag(HTML.Tag tag,
                     AttributeSet attributes,
                     HTMLTagHandlerResult result)
Description copied from interface: HTMLTagHandler
Returns the status of the tag to the parser

Specified by:
handleTag in interface HTMLTagHandler
Parameters:
tag - The tag to be handled
attributes - The attributes of the tag
result - The optional result object passed to the handler if more detailed results are required
Returns:
An indication as to whether the handler matched a result. 0 = No Match, 1 = Match