The GenericPortlet
class provides a default implementation
for the Portlet
interface.
Returns the portlet container attribute with the given name,
or null if there is no attribute by that name.
Returns the object bound with the specified name in this session
under the PORTLET_SCOPE
, or null
if no
object is bound under the name in that scope.
Returns the object bound with the specified name in this session,
or null
if no object is bound under the name in the given scope.
Returns the value of the named attribute as an Object
,
or null
if no attribute of the given name exists.
Returns an Enumeration
containing the attribute names
available within this portlet context, or an emtpy
Enumeration
if no attributes are available.
Returns an Enumeration
containing the
names of the attributes available to this request.
Returns an Enumeration
of String objects containing the names of
all the objects bound to this session under the PORTLET_SCOPE
, or an
empty Enumeration
if no attributes are available.
Returns an Enumeration
of String objects containing the names of
all the objects bound to this session in the given scope, or an
empty Enumeration
if no attributes are available in the
given scope.
Returns the name of the authentication scheme used for the
connection between client and portal,
for example, BASIC_AUTH
, CLIENT_CERT_AUTH
,
a custom one or null
if there was no authentication.
Returns the actual buffer size used for the response.
Returns the cause of this throwable or null
if the
cause is nonexistent or unknown.
Returns the name of the character encoding used in the body of this request.
Returns the name of the charset used for
the MIME body sent in this response.
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.
Returns the MIME type of the body of the request,
or null if the type is not known.
Returns the MIME type that can be used to contribute
markup to the render response.
Returns the context path which is the path prefix associated with the deployed
portlet application.
Returns the time when this session was created, measured in
milliseconds since midnight January 1, 1970 GMT.
Returns the keys that failed the validation.
Returns a string containing the unique identifier assigned to this session.
Returns a String containing the value of the named initialization parameter,
or null if the parameter does not exist.
Returns a String containing the value of the named initialization parameter,
or null if the parameter does not exist.
Returns a String containing the value of the named context-wide
initialization parameter, or null
if the parameter does not exist.
Returns the names of the portlet initialization parameters as an
Enumeration of String objects, or an empty Enumeration if the
portlet has no initialization parameters.
Returns the names of the portlet initialization parameters as an
Enumeration
of String objects, or an empty Enumeration
if the
portlet has no initialization parameters.
Returns the names of the context initialization parameters as an
Enumeration
of String objects, or an empty Enumeration if the context
has no initialization parameters.
Returns the last time the client sent a request associated with this session,
as the number of milliseconds since midnight January 1, 1970 GMT.
Returns the preferred Locale in which the portal will accept content.
Returns the locale assigned to the response.
Returns an Enumeration of Locale objects indicating, in decreasing
order starting with the preferred locale in which the portal will
accept content for this request.
Returns the major version of the Portlet API that this portlet
container supports.
Returns a Map
of the preferences.
Returns the maximum time interval, in seconds, for which the portlet container
keeps this session open between client accesses.
Returns the MIME type of the specified file, or null
if
the MIME type is not known.
Returns the minor version of the Portlet API that this portlet
container supports.
Returns the unsupported portlet mode causing this exception.
Returns all of the keys that have an associated value,
or an empty Enumeration
if no keys are
available.
The value returned by this method should be prefixed or appended to
elements, such as JavaScript variables or function names, to ensure
they are unique in the context of the portal page.
Returns the value of a request parameter as a String
,
or null
if the parameter does not exist.
Returns a Map
of the parameters of this request.
Returns an Enumeration
of String
objects containing the names of the parameters contained
in this request.
Returns an array of String
objects containing
all of the values the given request parameter has, or
null
if the parameter does not exist.
Returns the context of the calling portal.
Returns information about the portal like vendor, version, etc.
Returns the PortletConfig object of this portlet.
Returns the PortletContext
of the portlet application
the portlet is in.
Returns the PortletContext
of the portlet application
the portlet is in.
Returns the portlet application context associated with this session.
Returns the name of this portlet application correponding to this PortletContext as specified
in the web.xml
deployment descriptor for this web application by the
display-name
element.
Retrieves the body of the HTTP request from client to
portal as binary data using
an InputStream
.
Returns the current portlet mode of the portlet.
Returns the name of this portlet.
Returns the name of the portlet.
Returns a OutputStream
suitable for writing binary
data in the response.
Returns the current portlet session or, if there is no current session,
creates one and returns the new session.
Returns the current portlet session or, if there is no current session
and the given flag is true
, creates one and returns
the new session.
Returns the preferences object associated with the portlet.
Returns all the values of the specified request property
as a Enumeration
of String
objects.
Returns the portal property with the given name,
or a null
if there is
no property by that name.
Returns the value of the specified request property
as a String
.
Returns all portal property names, or an empty
Enumeration
if there are no property names.
Returns a Enumeration
of all the property names
this request contains.
Retrieves the body of the HTTP request from the client to the portal
as character data using
a BufferedReader
.
Returns a String
containing the real path
for a given virtual path.
Returns the login of the user making this request, if the user
has been authenticated, or null if the user has not been authenticated.
Returns the session ID indicated in the client request.
Returns a URL to the resource that is mapped to a specified
path.
Returns the resource located at the given path as an InputStream object.
Gets the resource bundle for the given locale based on the
resource bundle defined in the deployment descriptor
with resource-bundle
tag or the inlined resources
defined in the deployment descriptor.
Gets the resource bundle for the given locale based on the
resource bundle defined in the deployment descriptor
with resource-bundle
tag or the inlined resources
defined in the deployment descriptor.
Returns a directory-like listing of all the paths to resources within
the web application longest sub-path of which
matches the supplied path argument.
Returns the portal preferred content type for the response.
Gets a list of content types which the portal accepts for the response.
Returns the name of the scheme used to make this request.
Returns the name and version of the portlet container in which the
portlet is running.
Returns the host name of the server that received the request.
Returns the port number on which this request was received.
Returns the portlet state causing this exception.
Returns all supported portlet modes by the portal
as an enumertation of PorltetMode
objects.
Returns all supported window states by the portal
as an enumertation of WindowState
objects.
Used by the render method to get the title.
Returns the time in seconds for which the portlet can be expected to
be unavailable.
Returns a java.security.Principal object containing the name of the
current authenticated user.
Returns the first String value associated with the specified key of this preference.
Returns the String array value associated with the specified key in this preference.
Returns the current window state of the portlet.
Returns a PrintWriter object that can send character
text to the portal.
The PortalContext
interface gives the portlet
the ability to retrieve information about the portal calling this portlet.
The Portlet
interface is used by the portlet container to
invoke the portlets.
This constant defines the scope of the session attribute to be
private to the portlet and its included resources.
The PortletConfig
interface provides the portlet with
its configuration.
The PortletContext
interface defines a portlet view
of the portlet container.
The PortletException
class defines a general exception
that a portlet can throw when it is unable to perform its operation
successfully.
Constructs a new portlet exception.
Constructs a new portlet exception with the given text.
Constructs a new portlet exception when the portlet needs to do
the following:
- throw an exception
- include the "root cause" exception
- include a description message
Constructs a new portlet exception when the portlet needs to throw an
exception.
The PortletMode
class represents
the possible modes that a portlet can assume.
Creates a new portlet mode with the given name.
The PortletModeException
is thrown when a portlet
tries to use or set a portlet mode that is not supported by the current
runtime environment or the portlet.
Constructs a new portlet mode exception with the given text and the
portlet mode that caused this exception.
Constructs a new portlet mode exception when the portlet needs to do
the following:
throw an exception
- include a message about the "root cause" that interfered
with its normal operation
- include a description message
- include the portlet mode that caused this exception
Constructs a new portlet mode exception when the portlet needs to throw an
exception.
The PortletPreferences
interface allows the portlet to store
configuration data.
The PortletRequest
defines the base interface to provide client
request information to a portlet.
The PortletRequestDispatcher
interface
defines an object that receives requests from the client
and sends them to the specified resources (such as a servlet,
HTML file, or JSP file) on the server.
The PortletResponse
defines the base interface to assist a
portlet in creating and sending a response to the client.
A portlet should throw a PortletSecurityException
when a call fails because of security reasons.
Additionally it can be thrown by the portal/portlet-container.
Constructs a new security exception with the given text.
Constructs a new portlet security exception when the portlet needs to do
the following:
throw an exception
- include a message about the "root cause" that interfered
with its normal operation
- include a description message
Constructs a new portlet security exception when the portlet needs to throw an
exception.
The PortletSession
interface provides a way to identify a user
across more than one request and to store transient information about that user.
The PortletSessionUtil
class helps identify and decode
attributes in the PORTLET_SCOPE
scope of the PortletSession
when accessed through the HttpSession an from within calls to methods
of the HttpSessionBindingListener interface.
The PortletURL
interface represents a URL
that reference the portlet itself.
The PreferencesValidator
allows to validate the set of
preferences of the associated portlet just before they are
stored in the persistent store.
Prints the stack trace of this exception to the standard error stream.
Prints the stack trace of this exception to the specified print stream.
Prints the stack trace of this exception to the specified print writer.
Called by the portlet container to allow the portlet to process
an action request.
Called by the portlet container to allow the portlet to process
an action request.
Instructs the portlet container to send a redirect response
to the client using the specified redirect location URL.
Binds an object to a given attribute name in this portlet context.
Binds an object to this session under the PORTLET_SCOPE
, using the name specified.
Binds an object to this session in the given scope, using the name specified.
Stores an attribute in this request.
Sets the preferred buffer size for the body of the response.
Overrides the name of the character encoding used in the body of this
request.
Sets the MIME type for the render response.
Specifies the time, in seconds, between client requests, before the
portlet container invalidates this session.
Sets the given String parameter to this URL.
Sets the given String array parameter to this URL.
Sets a parameter map for this URL.
Sets the portlet mode of a portlet to the given portlet mode.
Indicates the portlet mode the portlet must be in, if this
portlet URL triggers a request.
Sets a String property to be returned to the portal.
Sets a String parameter for the render request.
Sets a String array parameter for the render request.
Sets a parameter map for the render request.
Indicated the security setting for this URL.
This method sets the title of the portlet.
Associates the specified String value with the specified key in this
preference.
Associates the specified String array value with the specified key in this
preference.
Sets the window state of a portlet to the given window state.
Indicates the window state the portlet should be in, if this
portlet URL triggers a request.
Commits all changes made to the preferences via the
set
methods in the persistent store.