| 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.
|
Method Summary | |
public void | addProperty(String name, String value) | public boolean | canGuaranteeConfidentiality() Return true if the connection can guarantee confidentiality (preventing
reading while in transit). | public boolean | canGuaranteeIntegrity() Return true if the connection can guarantee integrity
(preventing data tampering in the communication process). | public String | encodeURL(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 void | finish() | public void | flushBuffer() | public Object | getAttribute(String name) Attributes for the connection are HttpServletRequest attributes. | public Enumeration | getAttributeNames() Attributes for the connection are HttpServletRequest attributes. | public String | getAuthType() | public int | getBufferSize() | public String | getCharacterEncoding() | 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 String | getContentType() Return the content type established with setContentType(), or null if
setContentType() has not been called. | public String | getContextPath() | public static HttpServletRequest | getHttpRequest(PortletRequest request) | public HttpServletRequest | getHttpRequest() | public static HttpServletResponse | getHttpResponse(PortletRequest request) | public HttpServletResponse | getHttpResponse() | public Locale | getLocale() Return the Locale established with setLocale(), or null if setLocale()
has not been called. | public OutputStream | getOutputStream() | public PortletSession | getPortletSession(boolean create) | public Enumeration | getProperties(String propertyName) | public String | getProperty(String propertyName) | public Enumeration | getPropertyNames() | public String | getRemoteUser() | public String | getRequestedSessionId() | public String | getScheme() | public String | getServerName() | public int | getServerPort() | public String | getSubmitCharacterEncoding() | public int | getSubmitContentLength() | public String | getSubmitContentType() | public InputStream | getSubmitInputStream() | public BufferedReader | getSubmitReader() | public Principal | getUserPrincipal() | public PrintWriter | getWriter() | public boolean | handleConstraintFailure(Constraint constraint, int failureCode) | public boolean | handleException(Exception exception) | public boolean | isCommitted() | public boolean | isRequestedSessionIdValid() | public boolean | isSecure() | public boolean | isUserInRole(String role) | protected String | makeServletUrl(HttpServletRequest request) | public void | removeAttribute(String name) Attributes for the connection are HttpServletRequest attributes. | public void | reset() | public void | resetBuffer() | public String | resolveURL(String url) | public String | resolveURL(String url, boolean secure) Resolve the url with the given security level and encode it. | public void | sendRedirect(String location) | public void | setAttribute(String name, Object o) Attributes for the connection are HttpServletRequest attributes. | public void | setBufferSize(int size) | public void | setCharacterEncoding(String enc) | public void | setContentType(String contentType) | public void | setLocale(Locale locale) | public void | setProperty(String name, String value) | public void | setSubmitCharacterEncoding(String enc) | public void | start(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, boolean useParameters) | public void | start(Portal portal, PortletContext portletContext, HttpServletRequest httpRequest, HttpServletResponse httpResponse, InvocationFactory invocationFactory) |
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
|
HttpPortletConnection | public HttpPortletConnection()(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) | | |
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.
|
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.
|
getLocale | public Locale getLocale()(Code) | | Return the Locale established with setLocale(), or null if setLocale()
has not been called.
|
getPortletSession | public PortletSession getPortletSession(boolean create)(Code) | | |
getRequestedSessionId | public String getRequestedSessionId()(Code) | | |
getServerPort | public int getServerPort()(Code) | | |
getSubmitCharacterEncoding | public String getSubmitCharacterEncoding()(Code) | | |
getSubmitContentLength | public int getSubmitContentLength()(Code) | | |
getSubmitContentType | public String getSubmitContentType()(Code) | | |
isCommitted | public boolean isCommitted()(Code) | | |
isRequestedSessionIdValid | public boolean isRequestedSessionIdValid()(Code) | | |
isSecure | public boolean isSecure()(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, 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. |
setAttribute | public void setAttribute(String name, Object o)(Code) | | Attributes for the connection are HttpServletRequest attributes.
|
setBufferSize | public void setBufferSize(int size)(Code) | | |
setContentType | public void setContentType(String contentType)(Code) | | |
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)
|
|
|