站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ServerInvocationContext - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.server
Interface ServerInvocationContext

All Superinterfaces:
InvocationContext
All Known Implementing Classes:
ServerInvocationContextImpl

public interface ServerInvocationContext
extends InvocationContext

Version:
$Revision: 1.1 $
Author:
Julien Viet

Method Summary
 java.lang.String encodeURL(ServerURL url, URLContext context, URLFormat format)
           
 java.util.Map getBodyParameterMap()
          Return the parameter map for the body if the request was a POST with the content type x-www-formurlencoded otherwise return null.
 javax.servlet.http.HttpServletRequest getClientRequest()
          Return the request that made the connection to the server.
 javax.servlet.http.HttpServletResponse getClientResponse()
          The original servlet response.
 java.lang.String getMediaType()
          Return the normalized media type of the request or null if none has been provided by the client.
 java.lang.String getPortalContextPath()
          Return the value of the portal context path for this request.
 java.lang.String getPortalRequestPath()
          Return the value of the portal request path for this request.
 java.util.Map getQueryParameterMap()
          Return the parameter map decoded form the query string.
 URLContext getURLContext()
          Return the url context of this request.
 
Methods inherited from interface org.jboss.portal.common.invocation.InvocationContext
getAttribute, getAttributeResolver, removeAttribute, setAttribute
 

Method Detail

getClientRequest

public javax.servlet.http.HttpServletRequest getClientRequest()
Return the request that made the connection to the server.


getClientResponse

public javax.servlet.http.HttpServletResponse getClientResponse()
The original servlet response.

Returns:
the http response

getQueryParameterMap

public java.util.Map getQueryParameterMap()
Return the parameter map decoded form the query string.


getBodyParameterMap

public java.util.Map getBodyParameterMap()
Return the parameter map for the body if the request was a POST with the content type x-www-formurlencoded otherwise return null.


getMediaType

public java.lang.String getMediaType()
Return the normalized media type of the request or null if none has been provided by the client.


getURLContext

public URLContext getURLContext()
Return the url context of this request.


getPortalRequestPath

public java.lang.String getPortalRequestPath()
Return the value of the portal request path for this request.


getPortalContextPath

public java.lang.String getPortalContextPath()
Return the value of the portal context path for this request.


encodeURL

public java.lang.String encodeURL(ServerURL url,
                                  URLContext context,
                                  URLFormat format)
Parameters:
url -
context -
format -
Returns:
the encoded url