Java Doc for HttpPortletConnection.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » portal » generic » 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 » EJB Server resin 3.1.5 » resin » com.caucho.portal.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.portal.generic.PortletConnection
      com.caucho.portal.generic.HttpPortletConnection

HttpPortletConnection
public class HttpPortletConnection extends PortletConnection (Code)
A connection to an HttpServletRequest and HttpServletResponse.


Field Summary
final public static  StringHTTP_SERVLET_REQUEST
    
final public static  StringHTTP_SERVLET_RESPONSE
    

Constructor Summary
public  HttpPortletConnection()
    

Method Summary
public  voidaddProperty(String name, String value)
    
public  booleancanGuaranteeConfidentiality()
     Return true if the connection can guarantee confidentiality (preventing reading while in transit).
public  booleancanGuaranteeIntegrity()
     Return true if the connection can guarantee integrity (preventing data tampering in the communication process).
public  StringencodeURL(String location)
     A path with a schem is encoded only. A relative location (does not start with slash) is resolved relative to the servlet path and then encoded.
public  voidfinish()
    
public  voidflushBuffer()
    
public  ObjectgetAttribute(String name)
     Attributes for the connection are HttpServletRequest attributes.
public  EnumerationgetAttributeNames()
     Attributes for the connection are HttpServletRequest attributes.
public  StringgetAuthType()
    
public  intgetBufferSize()
    
public  StringgetCharacterEncoding()
    
public  Set<String>getClientCharacterEncodings()
     Get the character encodings acceptable to the client.
public  Set<String>getClientContentTypes()
     Get the content types acceptable to the client.
public  Set<Locale>getClientLocales()
     Get the locales acceptable to the client.
public  StringgetContentType()
     Return the content type established with setContentType(), or null if setContentType() has not been called.
public  StringgetContextPath()
    
public static  HttpServletRequestgetHttpRequest(PortletRequest request)
    
public  HttpServletRequestgetHttpRequest()
    
public static  HttpServletResponsegetHttpResponse(PortletRequest request)
    
public  HttpServletResponsegetHttpResponse()
    
public  LocalegetLocale()
     Return the Locale established with setLocale(), or null if setLocale() has not been called.
public  OutputStreamgetOutputStream()
    
public  PortletSessiongetPortletSession(boolean create)
    
public  EnumerationgetProperties(String propertyName)
    
public  StringgetProperty(String propertyName)
    
public  EnumerationgetPropertyNames()
    
public  StringgetRemoteUser()
    
public  StringgetRequestedSessionId()
    
public  StringgetScheme()
    
public  StringgetServerName()
    
public  intgetServerPort()
    
public  StringgetSubmitCharacterEncoding()
    
public  intgetSubmitContentLength()
    
public  StringgetSubmitContentType()
    
public  InputStreamgetSubmitInputStream()
    
public  BufferedReadergetSubmitReader()
    
public  PrincipalgetUserPrincipal()
    
public  PrintWritergetWriter()
    
public  booleanhandleConstraintFailure(Constraint constraint, int failureCode)
    
public  booleanhandleException(Exception exception)
    
public  booleanisCommitted()
    
public  booleanisRequestedSessionIdValid()
    
public  booleanisSecure()
    
public  booleanisUserInRole(String role)
    
protected  StringmakeServletUrl(HttpServletRequest request)
    
public  voidremoveAttribute(String name)
     Attributes for the connection are HttpServletRequest attributes.
public  voidreset()
    
public  voidresetBuffer()
    
public  StringresolveURL(String url)
    
public  StringresolveURL(String url, boolean secure)
     Resolve the url with the given security level and encode it.
public  voidsendRedirect(String location)
    
public  voidsetAttribute(String name, Object o)
     Attributes for the connection are HttpServletRequest attributes.
public  voidsetBufferSize(int size)
    
public  voidsetCharacterEncoding(String enc)
    
public  voidsetContentType(String contentType)
    
public  voidsetLocale(Locale locale)
    
public  voidsetProperty(String name, String value)
    
public  voidsetSubmitCharacterEncoding(String enc)
    
public  voidstart(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, boolean useParameters)
    
public  voidstart(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, InvocationFactory invocationFactory)
    

Field Detail
HTTP_SERVLET_REQUEST
final public static String HTTP_SERVLET_REQUEST(Code)
request attribute for the HttpServletRequest



HTTP_SERVLET_RESPONSE
final public static String HTTP_SERVLET_RESPONSE(Code)
request attribute for the HttpServletResponse




Constructor Detail
HttpPortletConnection
public HttpPortletConnection()(Code)




Method Detail
addProperty
public void addProperty(String name, String value)(Code)



canGuaranteeConfidentiality
public boolean canGuaranteeConfidentiality()(Code)
Return true if the connection can guarantee confidentiality (preventing reading while in transit).



canGuaranteeIntegrity
public boolean canGuaranteeIntegrity()(Code)
Return true if the connection can guarantee integrity (preventing data tampering in the communication process).



encodeURL
public String encodeURL(String location)(Code)
A path with a schem is encoded only. A relative location (does not start with slash) is resolved relative to the servlet path and then encoded. An absolute url (begins with slash) is resolved relative to the context path and then encoded.



finish
public void finish()(Code)



flushBuffer
public void flushBuffer() throws IOException(Code)



getAttribute
public Object getAttribute(String name)(Code)
Attributes for the connection are HttpServletRequest attributes.



getAttributeNames
public Enumeration getAttributeNames()(Code)
Attributes for the connection are HttpServletRequest attributes.



getAuthType
public String getAuthType()(Code)



getBufferSize
public int getBufferSize()(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getClientCharacterEncodings
public Set<String> getClientCharacterEncodings()(Code)
Get the character encodings acceptable to the client. The returned Set is order, the most preferrable character encoding appears before the least preferred. This implementation returns the character encodings that appear in the String returned by getProperty("Accept-Charset") in the order they appear in the string. the Set, null if client character encodings cannot be determined



getClientContentTypes
public Set<String> getClientContentTypes()(Code)
Get the content types acceptable to the client. The returned Set is ordered, the most preferrable content types appear before the least preferred. This implementation returns the content types that appear in the String returned by getProperty("Accept") in the order they appear in the string. the Set, null if client content types cannot be determined



getClientLocales
public Set<Locale> getClientLocales()(Code)
Get the locales acceptable to the client. The returned Set is ordered, the most preferrable locale appears before the least preferred. If the client supports all locales, then a Locale("","","") will be present in the returned Set. This implementation returns the locales that appear in the String returned by getProperty("Accept-Language") in the order they appear in the string. If the "*" element is present in the header, then a new Locale("","","") is present in the set. the Set, null if client locales cannot be determined



getContentType
public String getContentType()(Code)
Return the content type established with setContentType(), or null if setContentType() has not been called.



getContextPath
public String getContextPath()(Code)



getHttpRequest
public static HttpServletRequest getHttpRequest(PortletRequest request)(Code)



getHttpRequest
public HttpServletRequest getHttpRequest()(Code)



getHttpResponse
public static HttpServletResponse getHttpResponse(PortletRequest request)(Code)



getHttpResponse
public HttpServletResponse getHttpResponse()(Code)



getLocale
public Locale getLocale()(Code)
Return the Locale established with setLocale(), or null if setLocale() has not been called.



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)



getPortletSession
public PortletSession getPortletSession(boolean create)(Code)



getProperties
public Enumeration getProperties(String propertyName)(Code)



getProperty
public String getProperty(String propertyName)(Code)



getPropertyNames
public Enumeration getPropertyNames()(Code)



getRemoteUser
public String getRemoteUser()(Code)



getRequestedSessionId
public String getRequestedSessionId()(Code)



getScheme
public String getScheme()(Code)



getServerName
public String getServerName()(Code)



getServerPort
public int getServerPort()(Code)



getSubmitCharacterEncoding
public String getSubmitCharacterEncoding()(Code)



getSubmitContentLength
public int getSubmitContentLength()(Code)



getSubmitContentType
public String getSubmitContentType()(Code)



getSubmitInputStream
public InputStream getSubmitInputStream() throws IOException(Code)



getSubmitReader
public BufferedReader getSubmitReader() throws UnsupportedEncodingException, IOException(Code)



getUserPrincipal
public Principal getUserPrincipal()(Code)



getWriter
public PrintWriter getWriter() throws IOException(Code)



handleConstraintFailure
public boolean handleConstraintFailure(Constraint constraint, int failureCode) throws IOException(Code)



handleException
public boolean handleException(Exception exception)(Code)



isCommitted
public boolean isCommitted()(Code)



isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()(Code)



isSecure
public boolean isSecure()(Code)



isUserInRole
public boolean isUserInRole(String role)(Code)



makeServletUrl
protected String makeServletUrl(HttpServletRequest request)(Code)



removeAttribute
public void removeAttribute(String name)(Code)
Attributes for the connection are HttpServletRequest attributes.



reset
public void reset()(Code)



resetBuffer
public void resetBuffer()(Code)



resolveURL
public String resolveURL(String url)(Code)



resolveURL
public String resolveURL(String url, boolean secure) throws PortletSecurityException(Code)
Resolve the url with the given security level and encode it. This implementation calls resolveURL(String) if secure is false. If secure is true, the prefix set with setSecureUrlPrefix() is prepended.
throws:
  PortletSecurityException - if secure is true but the urlcannot be made secure because setSecureUrlPrefix() has not been called.



sendRedirect
public void sendRedirect(String location) throws IOException(Code)



setAttribute
public void setAttribute(String name, Object o)(Code)
Attributes for the connection are HttpServletRequest attributes.



setBufferSize
public void setBufferSize(int size)(Code)



setCharacterEncoding
public void setCharacterEncoding(String enc) throws UnsupportedEncodingException(Code)



setContentType
public void setContentType(String contentType)(Code)



setLocale
public void setLocale(Locale locale)(Code)



setProperty
public void setProperty(String name, String value)(Code)



setSubmitCharacterEncoding
public void setSubmitCharacterEncoding(String enc) throws UnsupportedEncodingException, IllegalStateException(Code)



start
public void start(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, boolean useParameters)(Code)



start
public void start(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, InvocationFactory invocationFactory)(Code)



Fields inherited from com.caucho.portal.generic.PortletConnection
final public static String PORTLET_CONNECTION(Code)(Java Doc)
final public static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.portal.generic.PortletConnection
abstract public void addProperty(String name, String value)(Code)(Java Doc)
abstract public boolean canGuaranteeConfidentiality()(Code)(Java Doc)
abstract public boolean canGuaranteeIntegrity()(Code)(Java Doc)
public void checkForFailure() throws PortletException(Code)(Java Doc)
abstract public String encodeURL(String path)(Code)(Java Doc)
public void finish()(Code)(Java Doc)
abstract public void flushBuffer() throws IOException(Code)(Java Doc)
public static Action getAction(PortletRequest portletRequest)(Code)(Java Doc)
public Action getAction(Window window, String namespace) throws PortletException, IOException(Code)(Java Doc)
abstract public Object getAttribute(String name)(Code)(Java Doc)
abstract public Enumeration getAttributeNames()(Code)(Java Doc)
abstract public String getAuthType()(Code)(Java Doc)
abstract public int getBufferSize()(Code)(Java Doc)
abstract public String getCharacterEncoding()(Code)(Java Doc)
abstract public Set<String> getClientCharacterEncodings()(Code)(Java Doc)
abstract public Set<String> getClientContentTypes()(Code)(Java Doc)
abstract public Set<Locale> getClientLocales()(Code)(Java Doc)
public static PortletConnection getConnection(PortletRequest portletRequest)(Code)(Java Doc)
abstract public String getContentType()(Code)(Java Doc)
abstract public String getContextPath()(Code)(Java Doc)
public Action getCurrentAction()(Code)(Java Doc)
public Render getCurrentRender()(Code)(Java Doc)
protected int getExpirationCache()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
abstract public Locale getLocale()(Code)(Java Doc)
abstract public OutputStream getOutputStream() throws IOException(Code)(Java Doc)
public static Portal getPortal(PortletRequest portletRequest)(Code)(Java Doc)
public Portal getPortal()(Code)(Java Doc)
abstract public PortletSession getPortletSession(boolean create)(Code)(Java Doc)
abstract public Enumeration getProperties(String propertyName)(Code)(Java Doc)
abstract public String getProperty(String propertyName)(Code)(Java Doc)
abstract public Enumeration getPropertyNames()(Code)(Java Doc)
abstract public String getRemoteUser()(Code)(Java Doc)
public static Render getRender(PortletRequest portletRequest)(Code)(Java Doc)
public Render getRender(Window window, String namespace) throws PortletException, IOException(Code)(Java Doc)
abstract public String getRequestedSessionId()(Code)(Java Doc)
abstract public String getScheme()(Code)(Java Doc)
abstract public String getServerName()(Code)(Java Doc)
abstract public int getServerPort()(Code)(Java Doc)
abstract public String getSubmitCharacterEncoding()(Code)(Java Doc)
abstract public int getSubmitContentLength()(Code)(Java Doc)
abstract public String getSubmitContentType()(Code)(Java Doc)
abstract public InputStream getSubmitInputStream() throws IOException, IllegalStateException(Code)(Java Doc)
abstract public BufferedReader getSubmitReader() throws UnsupportedEncodingException, IOException(Code)(Java Doc)
abstract public Principal getUserPrincipal()(Code)(Java Doc)
abstract public PrintWriter getWriter() throws IOException(Code)(Java Doc)
abstract public boolean handleConstraintFailure(Constraint constraint, int failureCode) throws IOException(Code)(Java Doc)
abstract public boolean handleException(Exception exception)(Code)(Java Doc)
abstract public boolean isCommitted()(Code)(Java Doc)
public boolean isConnectionFailed()(Code)(Java Doc)
protected boolean isPrivate()(Code)(Java Doc)
abstract public boolean isRequestedSessionIdValid()(Code)(Java Doc)
abstract public boolean isSecure()(Code)(Java Doc)
abstract public boolean isUserInRole(String role)(Code)(Java Doc)
abstract public void removeAttribute(String name)(Code)(Java Doc)
abstract public void reset()(Code)(Java Doc)
abstract public void resetBuffer()(Code)(Java Doc)
abstract public String resolveURL(String partialUrl)(Code)(Java Doc)
abstract public String resolveURL(String partialUrl, boolean isSecure) throws PortletSecurityException(Code)(Java Doc)
abstract public void sendRedirect(String location) throws IllegalStateException, IOException(Code)(Java Doc)
abstract public void setAttribute(String name, Object o)(Code)(Java Doc)
abstract public void setBufferSize(int size)(Code)(Java Doc)
abstract public void setCharacterEncoding(String enc) throws UnsupportedEncodingException(Code)(Java Doc)
public void setConnectionFailed()(Code)(Java Doc)
public void setConnectionFailed(Exception ex)(Code)(Java Doc)
abstract public void setContentType(String contentType)(Code)(Java Doc)
abstract public void setLocale(Locale locale)(Code)(Java Doc)
abstract public void setProperty(String name, String value)(Code)(Java Doc)
abstract public void setSubmitCharacterEncoding(String enc) throws UnsupportedEncodingException, IllegalStateException(Code)(Java Doc)
public void start(Portal portal, InvocationFactory invocationFactory)(Code)(Java Doc)

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.