P
- as PageIdentifier
typepublic class PageIdentifiersToLinks<P extends PageIdentifier,L extends FeedItem> extends Object implements FunctionTransformer<Collection<P>,List<L>>
Constructor and Description |
---|
PageIdentifiersToLinks() |
Modifier and Type | Method and Description |
---|---|
protected L |
createLink() |
protected L |
getLink(P pi)
Create the
FeedItem for PageIdentifier |
String |
getLinkPrefix()
The links derived are relative.
|
org.apache.commons.collections.Transformer |
getPagePathTransformer()
Convert
PageIdentifier to URL String |
boolean |
isLinkEncode()
Encode URL
|
void |
setLinkEncode(boolean linkEncode)
Encode URL
|
void |
setLinkPrefix(String linkPrefix)
The links derived are relative.
|
void |
setPagePathTransformer(org.apache.commons.collections.Transformer pagePathTransformer)
Convert
PageIdentifier to URL String |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
protected L getLink(P pi)
FeedItem
for PageIdentifier
pi
- as PageIdentifier
typeFeedItem
protected L createLink()
public org.apache.commons.collections.Transformer getPagePathTransformer()
PageIdentifier
to URL Stringpublic void setPagePathTransformer(org.apache.commons.collections.Transformer pagePathTransformer)
PageIdentifier
to URL Stringpublic String getLinkPrefix()
public void setLinkPrefix(String linkPrefix)
public boolean isLinkEncode()
public void setLinkEncode(boolean linkEncode)
Copyright © 2018. All rights reserved.