|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.invocation.AbstractInvocationContext
org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext
org.jboss.portal.portlet.impl.spi.AbstractActionContext
public abstract class AbstractActionContext
| Field Summary | |
|---|---|
protected PortletParameters |
form
. |
protected StateString |
interactionState
. |
| Fields inherited from class org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext |
|---|
markupInfo, mode, navigationalState, windowState |
| Constructor Summary | |
|---|---|
protected |
AbstractActionContext(Mode mode,
WindowState windowState,
StateString navigationalState,
MarkupInfo markupInfo,
StateString interactionState,
PortletParameters form)
|
| Method Summary | |
|---|---|
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding used in the body of this request. |
int |
getContentLength()
Returns the length, in bytes, of the request body which is made available by the input stream, or -1 if the length is not known. |
java.lang.String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is not known. |
PortletParameters |
getForm()
Returns the form parameters of the request or null if no form could be decoded by the caller. |
java.io.InputStream |
getInputStream()
Retrieves the body of the HTTP request from client to portal as binary data using an InputStream. |
StateString |
getInteractionState()
Returns the interaction state of the request. |
java.io.BufferedReader |
getReader()
Retrieves the body of the HTTP request from the client to the portal as character data using a BufferedReader. |
| Methods inherited from class org.jboss.portal.portlet.impl.spi.AbstractPortletInvocationContext |
|---|
encodeResourceURL, getClientRequest, getClientResponse, getMarkupInfo, getMode, getNavigationalState, getWindowState |
| Methods inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext |
|---|
addResolver, addResolver, getAttribute, getAttributeResolver, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.portal.portlet.spi.PortletInvocationContext |
|---|
encodeResourceURL, getMarkupInfo, getMode, getNavigationalState, getWindowState, renderURL |
| Methods inherited from interface org.jboss.portal.common.invocation.InvocationContext |
|---|
getAttribute, getAttributeResolver, removeAttribute, setAttribute |
| Field Detail |
|---|
protected StateString interactionState
protected PortletParameters form
| Constructor Detail |
|---|
protected AbstractActionContext(Mode mode,
WindowState windowState,
StateString navigationalState,
MarkupInfo markupInfo,
StateString interactionState,
PortletParameters form)
| Method Detail |
|---|
public java.lang.String getCharacterEncoding()
ActionContextnull
if the request does not specify a character encoding.
getCharacterEncoding in interface ActionContextString containing the name of the chararacter encoding, or null if the
request does not specify a character encoding.
public java.io.BufferedReader getReader()
throws java.io.IOException
ActionContextBufferedReader. The reader translates the character data according to the character encoding used on
the body. Either this method or ActionContext.getInputStream() may be called to read the body, not both.
For HTTP POST data of type application/x-www-form-urlencoded this method throws an
IllegalStateException as this data has been already processed by the portal/portlet-container and is
available as request parameters.
getReader in interface ActionContextBufferedReader containing the body of the request
java.io.UnsupportedEncodingException - if the character set encoding used is not supported and
the text cannot be decoded
java.io.IOException - if an input or output exception occurredActionContext.getInputStream()
public java.io.InputStream getInputStream()
throws java.io.IOException
ActionContextInputStream.
Either this method or ActionContext.getReader() may be called to read the body, but not both.
For HTTP POST data of type application/x-www-form-urlencoded this method throws an
IllegalStateException as this data has been already processed by the portal/portlet-container and is
available as request parameters.
getInputStream in interface ActionContextjava.io.IOException - if an input or output exception occurredpublic int getContentLength()
ActionContext
getContentLength in interface ActionContextpublic java.lang.String getContentType()
ActionContext
getContentType in interface ActionContextString containing the name of the MIME type of the request, or null if the type is not
known.public StateString getInteractionState()
ActionContext
getInteractionState in interface ActionContextpublic PortletParameters getForm()
ActionContext
getForm in interface ActionContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||