Package org.hippoecm.hst.core.linking
Class RewriteContext
- java.lang.Object
-
- org.hippoecm.hst.core.linking.RewriteContext
-
public class RewriteContext extends Object
-
-
Constructor Summary
Constructors Constructor Description RewriteContext(String path, Mount mount, boolean canonical, boolean navigationStateful)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mount
getMount()
String
getPath()
boolean
isCanonical()
boolean
isNavigationStateful()
String
toString()
-
-
-
Constructor Detail
-
RewriteContext
public RewriteContext(String path, Mount mount, boolean canonical, boolean navigationStateful) throws RewriteContextException
- Parameters:
path
- the path to use for link creation, not allowed to benull
mount
- theMount
to use for link creation, not allowed to benull
canonical
-true
when the link should be canonicalnavigationStateful
-true
when the link should be navigationStateful- Throws:
RewriteContextException
- ifpath
ormount
is null
-
-
Method Detail
-
getPath
public String getPath()
- Returns:
- the path to try the link creation for
-
getMount
public Mount getMount()
- Returns:
- the mount to try the link creation for
-
isCanonical
public boolean isCanonical()
- Returns:
true
when a canonical link should be created
-
isNavigationStateful
public boolean isNavigationStateful()
- Returns:
true
when the link must be navigationStateful
-
-