Java Doc for Target.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » bean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.bean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.cocoon.bean.Target

Target
public class Target (Code)
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).
author:
   Upayavira
version:
   CVS $Id: Target.java 433543 2006-08-22 06:22:54Z crossley $



Constructor Summary
public  Target(String type, String root, String sourceURI, String destURI)
    
public  Target(String type, String sourceURI, String destURI)
    
public  Target(String sourceURI, String destURI)
    

Method Summary
public  booleanconfirmExtensions()
    
public  booleanequals(Object o)
    
public  booleanfollowLinks()
    
public  StringgetAuthlessDestURI()
    
public  StringgetDeparameterizedSourceURI()
     Gets the source URI for this target, with parameters removed.
public  TargetgetDerivedTarget(String originalLinkURI)
    
public  StringgetDestinationURI()
     Calculates the destination URI - the URI to which the generated page should be written.
public  StringgetExtension()
    
public  StringgetLogger()
    
public  StringgetOriginalSourceURI()
     Gets the original URI used to create this Target.
public  StringgetPageURI()
     Gets the filename from the source URI, without the path.
public  TreeMapgetParameters()
     Gets the parameters that have been removed from the URI.
public  StringgetParentURI()
     Gets the parent URI (the URI of the page that contained a link to this URI).
public  StringgetPath()
     Gets the path from the source URI, without the filename.
public  StringgetSourceURI()
     Gets the source URI for this target, after the URI has been 'prepared' by normalisation, absolutization and deparameterization followed by reparameterization.
public  StringgetTranslatedURI(String path)
     Gets a translated version of a link, ready for insertion into another page as a link.
public  inthashCode()
    
public  voidsetConfirmExtension(boolean b)
    
public  voidsetDefaultFilename(String filename)
     Sets the default filename.
public  voidsetExtraExtension(String extension)
     Sets a file extension to be appended to the end of the destination URI.
public  voidsetFollowLinks(boolean b)
    
public  voidsetLogger(String string)
    
public  voidsetMimeType(String mimeType)
     Sets the mime type for the resource referenced by this target. If a mime type is specified, the file extension of the destination URI will be checked to see that it matches the default extension for the specified mime type.
public  voidsetOriginalURI(String uri)
     Sets the original URI.
public  voidsetParentURI(String uri)
     Sets the URI of the page that contained the link to this URI.
public  StringtoString()
    


Constructor Detail
Target
public Target(String type, String root, String sourceURI, String destURI) throws IllegalArgumentException(Code)



Target
public Target(String type, String sourceURI, String destURI) throws IllegalArgumentException(Code)



Target
public Target(String sourceURI, String destURI) throws IllegalArgumentException(Code)




Method Detail
confirmExtensions
public boolean confirmExtensions()(Code)
boolean



equals
public boolean equals(Object o)(Code)



followLinks
public boolean followLinks()(Code)



getAuthlessDestURI
public String getAuthlessDestURI() throws ProcessingException(Code)
destination URI after all authentication details have beenremoved



getDeparameterizedSourceURI
public String getDeparameterizedSourceURI()(Code)
Gets the source URI for this target, with parameters removed. This is the URI that is to be passed to Cocoon in order to generate the page.



getDerivedTarget
public Target getDerivedTarget(String originalLinkURI) throws IllegalArgumentException(Code)



getDestinationURI
public String getDestinationURI() throws ProcessingException(Code)
Calculates the destination URI - the URI to which the generated page should be written. This will be a URI that, when resolved by a SourceResolver, will return a modifiableSource. This calculation is only done once per target. It is therefore necessary to ensure that the mime type has been set (if required) before this method is called.



getExtension
public String getExtension()(Code)
Gets the file extension for the source URI



getLogger
public String getLogger()(Code)



getOriginalSourceURI
public String getOriginalSourceURI()(Code)
Gets the original URI used to create this Target. This URI is completely unprocessed.



getPageURI
public String getPageURI()(Code)
Gets the filename from the source URI, without the path. This is used to fill out relative URIs that have parameters but no filename such as ?page=123



getParameters
public TreeMap getParameters()(Code)
Gets the parameters that have been removed from the URI. These need to be passed to Cocoon when generating a page.



getParentURI
public String getParentURI()(Code)
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.



getPath
public String getPath()(Code)
Gets the path from the source URI, without the filename. This is used when absolutizing/relativizing link URIs.



getSourceURI
public String getSourceURI()(Code)
Gets the source URI for this target, after the URI has been 'prepared' by normalisation, absolutization and deparameterization followed by reparameterization. This final step is to ensure that all parameters appear in a consistent order. For example page?a=1&b=2 and page?b=2&a=1 should be considered the same resource, and thus have the same sourceURI.



getTranslatedURI
public String getTranslatedURI(String path) throws ProcessingException(Code)
Gets a translated version of a link, ready for insertion into another page as a link. This link needs to be relative to the original page.



hashCode
public int hashCode()(Code)



setConfirmExtension
public void setConfirmExtension(boolean b)(Code)



setDefaultFilename
public void setDefaultFilename(String filename)(Code)
Sets the default filename. This filename is appended to URIs that refer to a directory, i.e. end with a slash, as resources referred to by such a URI cannot be written to a file system without a filename. This URI change will be taken into account in pages that link to the current page. If no default is specified, the Cocoon constants value will be used.



setExtraExtension
public void setExtraExtension(String extension)(Code)
Sets a file extension to be appended to the end of the destination URI. The main use of this is to create broken link error files that stand out, within the file structure of the generated site, by, for example, adding '.error' to the end of the filename.



setFollowLinks
public void setFollowLinks(boolean b)(Code)



setLogger
public void setLogger(String string)(Code)



setMimeType
public void setMimeType(String mimeType)(Code)
Sets the mime type for the resource referenced by this target. If a mime type is specified, the file extension of the destination URI will be checked to see that it matches the default extension for the specified mime type. If it doesn't, the default extension will be appended to the destination URI. This URI change will be taken into account in pages that link to the current page. If the mime type is not specified (and thus null), no extension checking will take place.



setOriginalURI
public void setOriginalURI(String uri)(Code)
Sets the original URI. This is used to record the URI that caused the creation of this Target, for example as a link in another page. It is needed for doing link translation, as this is the URI that must be replaced by the translated one.



setParentURI
public void setParentURI(String uri)(Code)
Sets the URI of the page that contained the link to this URI. Used for reporting purposes.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.