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
 
Fields inherited from class org.apache.jetspeed.rewriter.rules.impl.IdentifiedImpl
id
 
Constructor Summary
RuleImpl()
           
 
Method Summary
 java.lang.String getIgnorePrefixes()
           
 boolean getPopup()
          Flag indicating whether to rewrite links as popups.
 java.lang.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(java.lang.String prefixes)
           
 void setPopup(boolean b)
          Flag indicating whether to rewrite links as popups.
 void setSuffix(java.lang.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(java.lang.String url)
          Checks to see if a URL should be rewritten or not.
 java.lang.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
 

Constructor Detail

RuleImpl

public RuleImpl()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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 java.lang.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(java.lang.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(java.lang.String prefixes)

getIgnorePrefixes

public java.lang.String getIgnorePrefixes()

shouldRewrite

public boolean shouldRewrite(java.lang.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-2009 Apache Software Foundation. All Rights Reserved.