|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.bean.Target
public class Target
A Target is a single page for generation. It encapsulates the URI arithmetic required to transform the URI of the page to be generated (the source URI) into the URI to which the resulting page should be written (the destination URI).
Constructor Summary | |
---|---|
Target(String sourceURI,
String destURI)
|
|
Target(String type,
String sourceURI,
String destURI)
|
|
Target(String type,
String root,
String sourceURI,
String destURI)
|
Method Summary | |
---|---|
boolean |
confirmExtensions()
|
boolean |
equals(Object o)
|
boolean |
followLinks()
|
String |
getAuthlessDestURI()
|
String |
getDeparameterizedSourceURI()
Gets the source URI for this target, with parameters removed. |
Target |
getDerivedTarget(String originalLinkURI)
|
String |
getDestinationURI()
Calculates the destination URI - the URI to which the generated page should be written. |
String |
getExtension()
Gets the file extension for the source URI |
String |
getLogger()
|
String |
getOriginalSourceURI()
Gets the original URI used to create this Target. |
String |
getPageURI()
Gets the filename from the source URI, without the path. |
TreeMap |
getParameters()
Gets the parameters that have been removed from the URI. |
String |
getParentURI()
Gets the parent URI (the URI of the page that contained a link to this URI). null is returned if this page was not referred to in a link. |
String |
getPath()
Gets the path from the source URI, without the filename. |
String |
getSourceURI()
Gets the source URI for this target, after the URI has been 'prepared' by normalisation, absolutization and deparameterization followed by reparameterization. |
String |
getTranslatedURI(String path)
Gets a translated version of a link, ready for insertion into another page as a link. |
int |
hashCode()
|
void |
setConfirmExtension(boolean b)
|
void |
setDefaultFilename(String filename)
Sets the default filename. |
void |
setExtraExtension(String extension)
Sets a file extension to be appended to the end of the destination URI. |
void |
setFollowLinks(boolean b)
|
void |
setLogger(String string)
|
void |
setMimeType(String mimeType)
Sets the mime type for the resource referenced by this target. |
void |
setOriginalURI(String uri)
Sets the original URI. |
void |
setParentURI(String uri)
Sets the URI of the page that contained the link to this URI. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Target(String type, String root, String sourceURI, String destURI) throws IllegalArgumentException
IllegalArgumentException
public Target(String type, String sourceURI, String destURI) throws IllegalArgumentException
IllegalArgumentException
public Target(String sourceURI, String destURI) throws IllegalArgumentException
IllegalArgumentException
Method Detail |
---|
public Target getDerivedTarget(String originalLinkURI) throws IllegalArgumentException
IllegalArgumentException
public void setOriginalURI(String uri)
public void setParentURI(String uri)
public void setMimeType(String mimeType)
public void setExtraExtension(String extension)
public void setDefaultFilename(String filename)
public String getPageURI()
public String getPath()
public String getExtension()
public String getParentURI()
public String getDestinationURI() throws ProcessingException
ProcessingException
public String getTranslatedURI(String path) throws ProcessingException
ProcessingException
public String getAuthlessDestURI() throws ProcessingException
ProcessingException
public String getOriginalSourceURI()
public String getSourceURI()
public String getDeparameterizedSourceURI()
public TreeMap getParameters()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean confirmExtensions()
public boolean followLinks()
public String getLogger()
public void setConfirmExtension(boolean b)
public void setFollowLinks(boolean b)
public void setLogger(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |