Java Doc for WSRPRewritingConstants.java in  » Portal » jboss-portal-2.6.4 » org » jboss » portal » wsrp » 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 » jboss portal 2.6.4 » org.jboss.portal.wsrp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.portal.wsrp.WSRPRewritingConstants

WSRPRewritingConstants
final public class WSRPRewritingConstants (Code)

This class provides constants used in the context of URL rewriting.


author:
   Chris Laprun
version:
   $Revision: 8784 $
since:
   2.4


Field Summary
final public static  StringBEGIN_WSRP_REWRITE
     10.2.1

All portlet URLs (i.e.

final static  StringENC_CLOSE
    
final static  StringENC_OPEN
    
final public static  StringEND_WSRP_REWRITE
     10.2.1

All portlet URLs (i.e.

final public static  StringFAKE_RESOURCE_REQ_REW
    
final public static  StringFAKE_RESOURCE_START
    
final public static  StringFAKE_RESOURCE_URL
    
final public static  StringFRAGMENT_ID
    
final public static  StringINTERACTION_STATE
     10.2.1.3 wsrp-interactionState

The value of this portlet URL parameter defines the interaction state the Consumer MUST send to the Producer when the URL is activated.

final public static  StringMODE
     10.2.1.4 wsrp-mode

Activating this URL includes a request to change the mode parameter in MarkupParams into the mode specified as the value for this portlet URL parameter.

final public static  StringNAVIGATIONAL_STATE
     10.2.1.2 wsrp-navigationalState

The value of this portlet URL parameter defines the navigational state the Consumer MUST send to the Producer when the URL is activated.

final public static  StringRESOURCE_REQUIRES_REWRITE
     10.2.1.1.3.2 wsrp-requiresRewrite

This boolean informs the Consumer that the resource needs to be parsed for URL rewriting.

final public static  StringRESOURCE_URL
     10.2.1.1.3.1 wsrp-url

This parameter provides the actual URL to the resource.

final public static  StringREWRITE_PARAMETER_CLOSE
     Closing token for URL parameters.
final public static  StringREWRITE_PARAMETER_OPEN
     Opening token for URL parameters.
final public static  StringSECURE_URL
     10.2.1.7 wsrp-secureURL

The value for the wsrp-secureURL is a boolean indicating whether the resulting URL MUST involve secure communication between the client and Consumer, as well as between the Consumer and Producer.

final public static  StringURL_TYPE_BLOCKING_ACTION
     10.2.1.1.1 wsrp-urlType = blockingAction

Activation of the URL will result in an invocation of performBlockingInteraction() on the Portlet that generated the markup.

final public static  StringURL_TYPE_NAME
     10.2.1.1 wsrp-urlType

This parameter MUST be specified first when using the Consumer URL rewriting template and the value selected from the following definitions.

final public static  StringURL_TYPE_RENDER
     10.2.1.1.2 wsrp-urlType = render

Activation of the URL will result in an invocation of getMarkup().

final public static  StringURL_TYPE_RESOURCE
     10.2.1.1.3 wsrp-urlType = resource

Activation of the URL will result in the Consumer acting as a gateway to the underlying resource, possibly in a cached manner, and returning it to the user-agent.

final public static  StringWINDOW_STATE
     10.2.1.5 wsrp-windowState

Activating this URL includes a request to change the windowState parameter in MarkupParams into the window state specified as the value for this portlet URL parameter.

final public static  intWSRP_REWRITE_PREFIX_LENGTH
    
final public static  intWSRP_REWRITE_SUFFIX_LENGTH
    
final public static  StringWSRP_REWRITE_TOKEN
     10.3.1 Consumer Rewriting (Namespace encoding)

The Portlet can prefix the token with "wsrp_rewrite_".




Field Detail
BEGIN_WSRP_REWRITE
final public static String BEGIN_WSRP_REWRITE(Code)
10.2.1

All portlet URLs (i.e. those the Consumer needs to rewrite) are demarcated in the markup by a token (wsrp_rewrite) both at the start (with a "?" appended to clearly delimit the start of the name/value pairs).




ENC_CLOSE
final static String ENC_CLOSE(Code)
Encoded version of REWRITE_PARAMETER_CLOSE



ENC_OPEN
final static String ENC_OPEN(Code)
Encoded version of REWRITE_PARAMETER_OPEN



END_WSRP_REWRITE
final public static String END_WSRP_REWRITE(Code)
10.2.1

All portlet URLs (i.e. those the Consumer needs to rewrite) are demarcated in the markup by a token (wsrp_rewrite) at the end (proceeded by a "/" to form the end token) of the URL declaration.




FAKE_RESOURCE_REQ_REW
final public static String FAKE_RESOURCE_REQ_REW(Code)



FAKE_RESOURCE_START
final public static String FAKE_RESOURCE_START(Code)



FAKE_RESOURCE_URL
final public static String FAKE_RESOURCE_URL(Code)



FRAGMENT_ID
final public static String FRAGMENT_ID(Code)
10.2.1.6 wsrp-fragmentID

This portlet URL parameter specifies the portion of an URL that navigates to a place within a document.




INTERACTION_STATE
final public static String INTERACTION_STATE(Code)
10.2.1.3 wsrp-interactionState

The value of this portlet URL parameter defines the interaction state the Consumer MUST send to the Producer when the URL is activated. Tree.If this parameter is missing, the Consumer MUST NOT supply the interactionState field of the InteractionParams structure.




MODE
final public static String MODE(Code)
10.2.1.4 wsrp-mode

Activating this URL includes a request to change the mode parameter in MarkupParams into the mode specified as the value for this portlet URL parameter. The value for wsrp-mode MUST be one of the modes detailed in section 6.8 or a custom mode the Consumer specified as supported during registration. The wsrp-mode portlet URL parameter MAY be used whenever the wsrp-urlType portlet URL parameter has a value of "blockingAction" or "render".




NAVIGATIONAL_STATE
final public static String NAVIGATIONAL_STATE(Code)
10.2.1.2 wsrp-navigationalState

The value of this portlet URL parameter defines the navigational state the Consumer MUST send to the Producer when the URL is activated. If this parameter is missing, the Consumer MUST NOT supply the navigationalState field of the MarkupParams.




RESOURCE_REQUIRES_REWRITE
final public static String RESOURCE_REQUIRES_REWRITE(Code)
10.2.1.1.3.2 wsrp-requiresRewrite

This boolean informs the Consumer that the resource needs to be parsed for URL rewriting. Normally this means that there are names that will be cross-referenced between the markup and this resource (e.g. JavaScript references). Note that this means the Consumer needs to deal with rewriting unique "namespaced" names in a set of documents, rather than treating each document individually. Processing such resources in a manner that allows caching of the resulting resource by the End-User"s user-agent can improve the performance of the aggregated page for the End-User. In particular, Consumers can process namespace rewriting by using a prefix that is unique to the user/Portlet pair provided any such prefix is held constant for the duration of use within the user"s session with the Consumer of any one Portlet.




RESOURCE_URL
final public static String RESOURCE_URL(Code)
10.2.1.1.3.1 wsrp-url

This parameter provides the actual URL to the resource. Note that this needs to be an absolute URL as the resource fetch will have no base for use in fetching a relative URL. Also note that since this resource URL will appear as a parameter value, it has to be strictly encoded (i.e. "&", "=", "/", and "?" need to be url-escaped) so that special URL characters do not invalidate the processing of the enclosing URL. Consumers are encouraged to use the same communication style (e.g. HTTP Get or Post) for retrieving the resource as was used in requesting the resource by the user-agent.




REWRITE_PARAMETER_CLOSE
final public static String REWRITE_PARAMETER_CLOSE(Code)
Closing token for URL parameters. See 10.2.2.



REWRITE_PARAMETER_OPEN
final public static String REWRITE_PARAMETER_OPEN(Code)
Opening token for URL parameters. See 10.2.2.



SECURE_URL
final public static String SECURE_URL(Code)
10.2.1.7 wsrp-secureURL

The value for the wsrp-secureURL is a boolean indicating whether the resulting URL MUST involve secure communication between the client and Consumer, as well as between the Consumer and Producer. The default value of this boolean is "false". Note that the Consumer"s aggregated page MUST be secure if any of the Portlets whose content is being displayed on the page have indicated the need for secure communication for their current markup.




URL_TYPE_BLOCKING_ACTION
final public static String URL_TYPE_BLOCKING_ACTION(Code)
10.2.1.1.1 wsrp-urlType = blockingAction

Activation of the URL will result in an invocation of performBlockingInteraction() on the Portlet that generated the markup. All form parameters, submitted as query string parameters using the HTTP GET method, that are not used to encode parameters defined by this specification MUST be passed to performBlockingInteraction() as formParameters.




URL_TYPE_NAME
final public static String URL_TYPE_NAME(Code)
10.2.1.1 wsrp-urlType

This parameter MUST be specified first when using the Consumer URL rewriting template and the value selected from the following definitions. Well-known portlet URL parameter names that are valid for only one wsrp-urlType are described relative to that wsrp-urlType while the remainder are described later.




URL_TYPE_RENDER
final public static String URL_TYPE_RENDER(Code)
10.2.1.1.2 wsrp-urlType = render

Activation of the URL will result in an invocation of getMarkup(). This mechanism permits a Portlet"s markup to contain URLs, which do not involve changes to local state, to avoid the overhead of two-step processing by directly invoking getMarkup(). The URL MAY specify a wsrp-navigationalState portlet URL parameter, whose value the Consumer MUST supply in the navigationalState field of the MarkupParams structure. If there is no such portlet URL parameter, the Consumer MUST NOT supply a value for this field.




URL_TYPE_RESOURCE
final public static String URL_TYPE_RESOURCE(Code)
10.2.1.1.3 wsrp-urlType = resource

Activation of the URL will result in the Consumer acting as a gateway to the underlying resource, possibly in a cached manner, and returning it to the user-agent. The URL for the resource (including any query string parameters) is encoded as the value of the wsrp-url parameter. When a portlet URL specifies "resource" for the wsrp-urlType portlet URL parameter, both the wsrp-url and wsrp-requiresRewrite portlet URL parameters MUST also be specified. If the Portlet needs to share data with the referenced resource, it can exploit the cookie support defined in section 10.4.




WINDOW_STATE
final public static String WINDOW_STATE(Code)
10.2.1.5 wsrp-windowState

Activating this URL includes a request to change the windowState parameter in MarkupParams into the window state specified as the value for this portlet URL parameter. The value for wsrp- windowState MUST be one of the values detailed in section 6.9 or a custom window state the Consumer specified as supported during registration. The wsrp-windowState portlet URL parameter MAY be used whenever the wsrp-urlType portlet URL parameter has a value of "blockingAction" or "render".




WSRP_REWRITE_PREFIX_LENGTH
final public static int WSRP_REWRITE_PREFIX_LENGTH(Code)



WSRP_REWRITE_SUFFIX_LENGTH
final public static int WSRP_REWRITE_SUFFIX_LENGTH(Code)



WSRP_REWRITE_TOKEN
final public static String WSRP_REWRITE_TOKEN(Code)
10.3.1 Consumer Rewriting (Namespace encoding)

The Portlet can prefix the token with "wsrp_rewrite_". The Consumer will locate such markers and MUST replace them with a prefix that is unique to this instance of this portlet on the page. This prefix has been chosen such that the Consumer is able to do a single parse of the markup to both locate such markers and the URL rewrite expressions described in section 10.2.1. In addition, this prefix is legal for at least the JavaScript and VBScript scripting languages and CSS class names. This permits the independent testing of most generated markup fragments.






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.