Java Doc for ViewParamUtil.java in  » Web-Framework » RSF » uk » org » ponder » rsf » viewstate » 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 » Web Framework » RSF » uk.org.ponder.rsf.viewstate 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   uk.org.ponder.rsf.viewstate.ViewParamUtil

ViewParamUtil
public class ViewParamUtil (Code)
Utilities for converting URL parameters to and from Objects (ViewParameters), Maps, and Lists of various dizzying forms.
author:
   Antranig Basman (amb26@ponder.org.uk)


Field Summary
final public static  StringHIGH_PREFIX
     A prefix for a ViewParameters attribute representing a "surrogate" pathinfo trunk segment.
final public static  StringLOW_PREFIX
     An alternative representation of HIGH_PREFIX which will not take priority when determining the overall viewID of a param set.


Method Summary
public static  intattrToIndex(String attrname)
     Convert a "surrogate" attribute name ("!0", "!1" etc) to its pathinfo index or return -1 if not recognised.
public static  StringgetAnyFullURL(AnyViewParameters viewparams, ViewStateHandler vsh)
     Convert an AnyViewParameters to a full URL, using the supplied ViewStateHandler in the case of a ViewParameters, or the contained URL in the case of RawViewParameters.
public static  StringgetAttrIndex(int index, boolean highpriority)
     Returns the "surrogate attribute name" corresponding to a given pathinfo index and its priority level.
public static  DeepBeanClonergetCloner()
     Returns the standard RSF "DeepBeanCloner" bound to the current thread.
public static  ParameterListmapToParamList(Map toconvert)
    
public static  ViewParametersparse(ViewParametersParser parser, String reducedURL)
     Parse a "reduced URL" (as often seen in serialized component trees and the like) into a full ViewParameters object.
public static  StringtoHTTPRequest(ViewParamsCodec vpcodec, ViewParameters viewparams)
    
public static  StringtoHTTPRequest(RawURLState rawstate)
     Returns the "mid-portion" of the URL corresponding to these parameters, i.e.
public static  MapviewParamsToMap(ViewStateHandler vsh, ViewParameters viewparams)
     Converts the portion of ViewParameters that will be rendered into URL attributes into name/value pairs as a Map.

Field Detail
HIGH_PREFIX
final public static String HIGH_PREFIX(Code)
A prefix for a ViewParameters attribute representing a "surrogate" pathinfo trunk segment. This is useful, for example when constructing a GET form which is attempting to submit against a part of the view state which has been mapped into the trunk path.



LOW_PREFIX
final public static String LOW_PREFIX(Code)
An alternative representation of HIGH_PREFIX which will not take priority when determining the overall viewID of a param set.





Method Detail
attrToIndex
public static int attrToIndex(String attrname)(Code)
Convert a "surrogate" attribute name ("!0", "!1" etc) to its pathinfo index or return -1 if not recognised.



getAnyFullURL
public static String getAnyFullURL(AnyViewParameters viewparams, ViewStateHandler vsh)(Code)
Convert an AnyViewParameters to a full URL, using the supplied ViewStateHandler in the case of a ViewParameters, or the contained URL in the case of RawViewParameters.



getAttrIndex
public static String getAttrIndex(int index, boolean highpriority)(Code)
Returns the "surrogate attribute name" corresponding to a given pathinfo index and its priority level.



getCloner
public static DeepBeanCloner getCloner()(Code)
Returns the standard RSF "DeepBeanCloner" bound to the current thread. It is always undesirable to name beans in Java code, but this access is necessary to permit ViewParameters objects to clone themselves in contexts too small to inject this dependency.



mapToParamList
public static ParameterList mapToParamList(Map toconvert)(Code)



parse
public static ViewParameters parse(ViewParametersParser parser, String reducedURL)(Code)
Parse a "reduced URL" (as often seen in serialized component trees and the like) into a full ViewParameters object.



toHTTPRequest
public static String toHTTPRequest(ViewParamsCodec vpcodec, ViewParameters viewparams)(Code)



toHTTPRequest
public static String toHTTPRequest(RawURLState rawstate)(Code)
Returns the "mid-portion" of the URL corresponding to these parameters, i.e. /view-id/more-path-info?param1=val¶m2=val#anchor



viewParamsToMap
public static Map viewParamsToMap(ViewStateHandler vsh, ViewParameters viewparams)(Code)
Converts the portion of ViewParameters that will be rendered into URL attributes into name/value pairs as a Map.
Parameters:
  vsh - The ViewStateHandler encoding URL information
Parameters:
  viewparams - The ViewParameters object to be encoded A map of String to String holding the key/value pairs.



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.