Java Doc for UPFileSpec.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.UPFileSpec

UPFileSpec
public class UPFileSpec (Code)
This helper class allows for easy access to the information contained in the ever-changing uP file URL spec. The uP file syntax is likely to change often, therefore we encourage developers to use this class instead of trying to parse the uP file on your own.

Note: in case you're wondering what in the world "uP file" is, take a look at the portal URLs. The context path ends with a file-like specification that always has ".uP" at the end ... that's what we call a "uP" file. It is used to provide information on how different requests should be processed.

Current uP file syntax looks like this: "[tag.tagId.]{method}.methodId.[target.targetId.][*.]uP", where "[]" denote optional expressions and "{}" choice-defined expressions. The "{method}" field, at the moment has two choices: "render" and "worker".

uPortal will assume that the .uP file spec is always well-formed, so don't try to construct it on your own, use baseActionURL or one of the workerActionURLs.


author:
   Peter Kharchenko pkharchenko@interactivebusiness.com"
version:
   $Revision: 36690 $


Field Summary
final public static  StringDETACH_URL_ELEMENT
    
final public static  StringFILE_DOWNLOAD_WORKER
    
final public static  StringPORTAL_URL_SEPARATOR
    
final public static  StringPORTAL_URL_SUFFIX
    
final public static  intRENDER_METHOD
    
final public static  StringRENDER_URL_ELEMENT
    
final public static  StringTAG_URL_ELEMENT
    
final public static  StringTARGET_URL_ELEMENT
    
final public static  intWORKER_METHOD
    
final public static  StringWORKER_URL_ELEMENT
    
 Stringmethod
    
 StringmethodNodeId
    
 StringtagId
    
 StringtargetNodeId
    
 StringuPFile_extras
    

Constructor Summary
public  UPFileSpec()
     Creates a new UPFileSpec instance with all values being null.
public  UPFileSpec(HttpServletRequest req)
     Construct a .uP file spec object for a .uP file contained in a given request.
public  UPFileSpec(String uPFile)
    
public  UPFileSpec(UPFileSpec up)
     Copy constructor.
public  UPFileSpec(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements)
     A building constructor.
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e.

Method Summary
protected  voidanalyze(String uPFile)
    
public static  StringbuildUPFile(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements)
     Constructs a .uP file
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e.
public static  StringbuildUPFileBase(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements)
     Constructs a .uP file, without the suffix (actual ".uP") so it can be extended further.
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e.
protected static  StringbuildUPFileBase(String tagId, String method, String methodNodeId, String targetNodeId, String extraElements)
    
public  StringgetMethod()
    
public  StringgetMethodNodeId()
     Determine Id specified by the method element.
public  StringgetTagId()
     Returns a tag identifier.
public  StringgetTargetNodeId()
     Determine Id specified by the "target" element.
public  StringgetUPFile()
     Get the full .uP file String.
public  StringgetUPFileExtras()
     Returns a "cleaned-up" version of the uP file with all known fields such as tag, method, and target, removed.
public  voidsetMethod(int method)
     Set a method.
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e.
public  voidsetMethodNodeId(String nodeId)
     Set method node id.
public  voidsetTagId(String id)
    
public  voidsetTargetNodeId(String nodeId)
    
public  voidsetUPFileExtras(String extras)
    

Field Detail
DETACH_URL_ELEMENT
final public static String DETACH_URL_ELEMENT(Code)



FILE_DOWNLOAD_WORKER
final public static String FILE_DOWNLOAD_WORKER(Code)



PORTAL_URL_SEPARATOR
final public static String PORTAL_URL_SEPARATOR(Code)



PORTAL_URL_SUFFIX
final public static String PORTAL_URL_SUFFIX(Code)



RENDER_METHOD
final public static int RENDER_METHOD(Code)



RENDER_URL_ELEMENT
final public static String RENDER_URL_ELEMENT(Code)



TAG_URL_ELEMENT
final public static String TAG_URL_ELEMENT(Code)



TARGET_URL_ELEMENT
final public static String TARGET_URL_ELEMENT(Code)



WORKER_METHOD
final public static int WORKER_METHOD(Code)



WORKER_URL_ELEMENT
final public static String WORKER_URL_ELEMENT(Code)



method
String method(Code)



methodNodeId
String methodNodeId(Code)



tagId
String tagId(Code)



targetNodeId
String targetNodeId(Code)



uPFile_extras
String uPFile_extras(Code)




Constructor Detail
UPFileSpec
public UPFileSpec()(Code)
Creates a new UPFileSpec instance with all values being null.



UPFileSpec
public UPFileSpec(HttpServletRequest req)(Code)
Construct a .uP file spec object for a .uP file contained in a given request.
Parameters:
  req - a HttpServletRequest value



UPFileSpec
public UPFileSpec(String uPFile)(Code)
Construct a .uP file spec object by providing the actual .uP file string
Parameters:
  uPFile - a String value



UPFileSpec
public UPFileSpec(UPFileSpec up)(Code)
Copy constructor.
Parameters:
  up - an UPFileSpec value to copy the values from



UPFileSpec
public UPFileSpec(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements) throws PortalException(Code)
A building constructor.
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e. UPFileSpec.RENDER_METHOD or UPFileSpec.WORKER_METHOD)
Parameters:
  methodNodeId - a method node id String value (required value, can not be null)
Parameters:
  targetNodeId - a target id String value (can be null)
Parameters:
  extraElements - a String to be incorporated into the file name before the suffix (".uP"). These values will be available from the UPFileSpec.getUPFileExtras() result when .uP file is parsed. (can be null)
exception:
  PortalException - if an invalid method code is passed or no methodNodeId is present.




Method Detail
analyze
protected void analyze(String uPFile)(Code)



buildUPFile
public static String buildUPFile(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements) throws PortalException(Code)
Constructs a .uP file
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e. UPFileSpec.RENDER_METHOD or UPFileSpec.WORKER_METHOD)
Parameters:
  methodNodeId - a method node id String value (required value, can not be null)
Parameters:
  targetNodeId - a target id String value (can be null)
Parameters:
  extraElements - a String to be incorporated into the file name before the suffix (".uP"). These values will be available from the UPFileSpec.getUPFileExtras() result when .uP file is parsed. (can be null) a String value
exception:
  PortalException - if an invalid method code is passed or no methodNodeId is present.



buildUPFileBase
public static String buildUPFileBase(String tagId, int method, String methodNodeId, String targetNodeId, String extraElements) throws PortalException(Code)
Constructs a .uP file, without the suffix (actual ".uP") so it can be extended further.
Parameters:
  tagId - a tag id String value (can be null)
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e. UPFileSpec.RENDER_METHOD or UPFileSpec.WORKER_METHOD)
Parameters:
  methodNodeId - a method node id String value (required value, can not be null)
Parameters:
  targetNodeId - a target id String value (can be null)
Parameters:
  extraElements - a String to be incorporated into the file name before the suffix (".uP"). These values will be available from the UPFileSpec.getUPFileExtras() result when .uP file is parsed. (can be null) a String value
exception:
  PortalException - if an invalid method code is passed or no methodNodeId is present.



buildUPFileBase
protected static String buildUPFileBase(String tagId, String method, String methodNodeId, String targetNodeId, String extraElements) throws PortalException(Code)



getMethod
public String getMethod()(Code)
Determine method name a String method name, null if no method was specified.



getMethodNodeId
public String getMethodNodeId()(Code)
Determine Id specified by the method element. a String method node Id value, null if no method was specified.



getTagId
public String getTagId()(Code)
Returns a tag identifier. a String tag value, null if no tag was specified.



getTargetNodeId
public String getTargetNodeId()(Code)
Determine Id specified by the "target" element. a String target Id value, null if no target was specified.



getUPFile
public String getUPFile() throws PortalException(Code)
Get the full .uP file String. a String value



getUPFileExtras
public String getUPFileExtras()(Code)
Returns a "cleaned-up" version of the uP file with all known fields such as tag, method, and target, removed. This can be used by... a String value, null if none were encountered.



setMethod
public void setMethod(int method) throws PortalException(Code)
Set a method.
Parameters:
  method - a method String value (required, must be one of the UPFileSpec.*_METHOD constants, i.e. UPFileSpec.RENDER_METHOD or UPFileSpec.WORKER_METHOD)
exception:
  PortalException - if an invalid method id is passed.



setMethodNodeId
public void setMethodNodeId(String nodeId)(Code)
Set method node id.
Parameters:
  nodeId - a String value



setTagId
public void setTagId(String id)(Code)
Set a tag id
Parameters:
  id - a String value



setTargetNodeId
public void setTargetNodeId(String nodeId)(Code)
Set target node id
Parameters:
  nodeId - a String value



setUPFileExtras
public void setUPFileExtras(String extras)(Code)
Set extras to be appended to the spec before the suffix element (".uP")
Parameters:
  extras - a String value



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.