org.apache.jetspeed.rewriter.rules.impl
Class RuleImpl

java.lang.Object
  extended by org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
      extended by org.apache.jetspeed.rewriter.rules.impl.RuleImpl
All Implemented Interfaces:
Identified, Rule

public class RuleImpl
extends IdentifiedImpl
implements Rule

Rule

Version:
$Id: RuleImpl.java 517121 2007-03-12 07:45:49Z ate $
Author:
David Sean Taylor

Field Summary
private  List ignorePrefixes
           
private  boolean popup
           
private  String prefixes
           
private  String suffix
           
private  boolean useBase
           
 
Fields inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
id
 
Constructor Summary
RuleImpl()
           
 
Method Summary
 String getIgnorePrefixes()
           
 boolean getPopup()
          Flag indicating whether to rewrite links as popups.
 String getSuffix()
          Suffix string to append to the rewritten URL.
 boolean getUseBase()
          Flag indicating whether to use the Base URL for this rewriter.
 void setIgnorePrefixes(String prefixes)
           
 void setPopup(boolean b)
          Flag indicating whether to rewrite links as popups.
 void setSuffix(String string)
          Suffix string to append to the rewritten URL.
 void setUseBase(boolean b)
          Flag indicating whether to use the Base URL for this rewriter.
 boolean shouldRewrite(String url)
          Checks to see if a URL should be rewritten or not.
 String toString()
           
 
Methods inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.rewriter.rules.Identified
getId, setId
 

Field Detail

useBase

private boolean useBase

popup

private boolean popup

suffix

private String suffix

prefixes

private String prefixes

ignorePrefixes

private List ignorePrefixes
Constructor Detail

RuleImpl

public RuleImpl()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getPopup

public boolean getPopup()
Description copied from interface: Rule
Flag indicating whether to rewrite links as popups. The default setting is false, do not rewrite as a popup.

Specified by:
getPopup in interface Rule
Returns:
true if this rule rewrites links as popups

getSuffix

public String getSuffix()
Description copied from interface: Rule
Suffix string to append to the rewritten URL.

Specified by:
getSuffix in interface Rule
Returns:
the value of the suffix string.

getUseBase

public boolean getUseBase()
Description copied from interface: Rule
Flag indicating whether to use the Base URL for this rewriter. The default setting is true, use the rewriter's Base URL.

Specified by:
getUseBase in interface Rule
Returns:
true if this rule uses the Base URL

setPopup

public void setPopup(boolean b)
Description copied from interface: Rule
Flag indicating whether to rewrite links as popups. The default setting is false, do not rewrite as a popup.

Specified by:
setPopup in interface Rule

setSuffix

public void setSuffix(String string)
Description copied from interface: Rule
Suffix string to append to the rewritten URL.

Specified by:
setSuffix in interface Rule

setUseBase

public void setUseBase(boolean b)
Description copied from interface: Rule
Flag indicating whether to use the Base URL for this rewriter. The default setting is true, use the rewriter's Base URL.

Specified by:
setUseBase in interface Rule

setIgnorePrefixes

public void setIgnorePrefixes(String prefixes)

getIgnorePrefixes

public String getIgnorePrefixes()

shouldRewrite

public boolean shouldRewrite(String url)
Description copied from interface: Rule
Checks to see if a URL should be rewritten or not.

Specified by:
shouldRewrite in interface Rule


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.