Java Doc for AbstractExternalizeManager.java in  » Swing-Library » wings3 » org » wings » externalizer » 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 » Swing Library » wings3 » org.wings.externalizer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.externalizer.AbstractExternalizeManager

All known Subclasses:   org.wings.externalizer.ExternalizeManager,  org.wings.externalizer.SystemExternalizeManager,
AbstractExternalizeManager
abstract public class AbstractExternalizeManager (Code)

author:
   Armin Haaf


Field Summary
final public static  intFINAL
     for an externalized object with the final flag on the expired date header is set to a big value.
final public  longFINAL_EXPIRES
     in seconds; Computed from UNIQUE_TIMESLICE; do not change.
final public static  intGLOBAL
     for an externalized object with the gobal flag on, the externalized object is available to all requests.
final protected static  LogLOG
    
final public static  StringNOT_FOUND_IDENTIFIER
     The identifier generated, if the ExternalizeManager did not find an apropriate Externalizer .
final protected  longPREFIX_TIMESLICE
     Prefix for the externalized ID; long.
final public static  intREQUEST
     for an externalized object with the request flag on, the externalized object is removed from the ExternalizeManager after one request of the object.
final public static  intSESSION
     for an externalized object with the session flag on, the externalized object only available to requests within the session which created the object.
final public  intUNIQUE_TIMESLICE
    
final protected  Map<ExternalizedResource, String>reverseExternalized
     To search for an already externalized object.
protected  StringsessionEncoding
     To support Session local externalizing, the ExternalizeManager needs to encode the session identifier of the servlet container in the URL of the externalized object.

Constructor Summary
public  AbstractExternalizeManager()
    

Method Summary
public  voidclear()
    
final protected  StringcreateIdentifier()
    
public  voiddeliver(String identifier, HttpServletResponse response, Device out)
     delivers a externalized object identfied with the given identifier to a client.
public  voiddeliver(ExternalizedResource extInfo, HttpServletResponse response, Device out)
    
public  Stringexternalize(Object obj, Externalizer externalizer)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, Collection headers)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, int flags)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, Collection headers, int flags)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, String mimeType)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, String mimeType, Collection headers)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(Object obj, Externalizer externalizer, String mimeType, Collection headers, int flags)
     externalizes (make a java object available for a browser) an object with the given Externalizer .
public  Stringexternalize(ExternalizedResource extInfo)
     externalizes (make a java object available for a browser) the object in extInfo.
abstract public  ExternalizedResourcegetExternalizedResource(String identifier)
     get the ExternalizedResource by identifier.
public  StringgetId(String url)
     externalizes (make a java object available for a browser) the object in extInfo.
final protected synchronized  longgetNextIdentifier()
    
public  StringgetPrefix()
    
abstract public  voidremoveExternalizedResource(String identifier)
     removes the ExternalizedResource by identifier.
public  voidsetPrefix(String prefix)
    
public  voidsetResponse(HttpServletResponse response)
    
abstract protected  voidstoreExternalizedResource(String identifier, ExternalizedResource extInfo)
     store the ExternalizedResource in a map.

Field Detail
FINAL
final public static int FINAL(Code)
for an externalized object with the final flag on the expired date header is set to a big value. If the final flag is off, the browser or proxy does not cache the object.



FINAL_EXPIRES
final public long FINAL_EXPIRES(Code)
in seconds; Computed from UNIQUE_TIMESLICE; do not change.



GLOBAL
final public static int GLOBAL(Code)
for an externalized object with the gobal flag on, the externalized object is available to all requests. Also it is never garbage collected and available for the lifecycle of the servlet container.



LOG
final protected static Log LOG(Code)



NOT_FOUND_IDENTIFIER
final public static String NOT_FOUND_IDENTIFIER(Code)
The identifier generated, if the ExternalizeManager did not find an apropriate Externalizer .



PREFIX_TIMESLICE
final protected long PREFIX_TIMESLICE(Code)
Prefix for the externalized ID; long. Computed, do not change.



REQUEST
final public static int REQUEST(Code)
for an externalized object with the request flag on, the externalized object is removed from the ExternalizeManager after one request of the object.



SESSION
final public static int SESSION(Code)
for an externalized object with the session flag on, the externalized object only available to requests within the session which created the object. The object is not accessible anymore after the session is destroyed (it is garbage collected after the session is garbage collected)



UNIQUE_TIMESLICE
final public int UNIQUE_TIMESLICE(Code)
in seconds



reverseExternalized
final protected Map<ExternalizedResource, String> reverseExternalized(Code)
To search for an already externalized object. This performs way better than search in the value set of the identifier- ExternalizedResource map.



sessionEncoding
protected String sessionEncoding(Code)
To support Session local externalizing, the ExternalizeManager needs to encode the session identifier of the servlet container in the URL of the externalized object. This is set in the constructor and should work (I hope so) with all servlet containers.




Constructor Detail
AbstractExternalizeManager
public AbstractExternalizeManager()(Code)




Method Detail
clear
public void clear()(Code)



createIdentifier
final protected String createIdentifier()(Code)



deliver
public void deliver(String identifier, HttpServletResponse response, Device out) throws IOException(Code)
delivers a externalized object identfied with the given identifier to a client. It sends an error (404), if the identifier is not registered.



deliver
public void deliver(ExternalizedResource extInfo, HttpServletResponse response, Device out) throws IOException(Code)



externalize
public String externalize(Object obj, Externalizer externalizer)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . The object is externalized in the AbstractExternalizeManager.SESSION scope. a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, Collection headers)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . If the given headers are !=null the headers overwrite the headers from the Externalizer . The object is externalized in the AbstractExternalizeManager.SESSION scope. a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, int flags)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . Valid flags are (this may change, look also in the static variable section) a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, Collection headers, int flags)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . If the given headers are !=null the headers overwrite the headers from the Externalizer . Valid flags are (this may change, look also in the static variable section) a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, String mimeType)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . If the mimeType!=null, mimeType overwrites the mimeType of the Externalizer . The object is externalized in the AbstractExternalizeManager.SESSION scope. a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, String mimeType, Collection headers)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . If the mimeType!=null, mimeType overwrites the mimeType of the Externalizer . If the given headers are !=null the headers overwrite the headers from the Externalizer . a URL for accessing the object relative to the base URL.



externalize
public String externalize(Object obj, Externalizer externalizer, String mimeType, Collection headers, int flags)(Code)
externalizes (make a java object available for a browser) an object with the given Externalizer . If the mimeType!=null, mimeType overwrites the mimeType of the Externalizer . If the given headers are !=null the headers overwrite the headers from the Externalizer . Valid flags are (this may change, look also in the static variable section) a URL for accessing the object relative to the base URL.



externalize
public String externalize(ExternalizedResource extInfo)(Code)
externalizes (make a java object available for a browser) the object in extInfo. a URL for accessing the externalized object relative to the base URL.



getExternalizedResource
abstract public ExternalizedResource getExternalizedResource(String identifier)(Code)
get the ExternalizedResource by identifier. null, if not found!!



getId
public String getId(String url)(Code)
externalizes (make a java object available for a browser) the object in extInfo. a URL for accessing the externalized object relative to the base URL.



getNextIdentifier
final protected synchronized long getNextIdentifier()(Code)



getPrefix
public String getPrefix()(Code)
String prefixed to every created externlizer identifier via AbstractExternalizeManager.createIdentifier()



removeExternalizedResource
abstract public void removeExternalizedResource(String identifier)(Code)
removes the ExternalizedResource by identifier.



setPrefix
public void setPrefix(String prefix)(Code)
String prefixed to every created externlizer identifier via AbstractExternalizeManager.createIdentifier()



setResponse
public void setResponse(HttpServletResponse response)(Code)



storeExternalizedResource
abstract protected void storeExternalizedResource(String identifier, ExternalizedResource extInfo)(Code)
store the ExternalizedResource in a map. The ExternalizedResource should later on accessible by the identifier AbstractExternalizeManager.getExternalizedResource , AbstractExternalizeManager.removeExternalizedResource



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.