public class PortletTilesApplicationContext extends Object implements TilesApplicationContext
| Modifier and Type | Field and Description |
|---|---|
protected javax.portlet.PortletContext |
context
The
PortletContext for this web application. |
| Constructor and Description |
|---|
PortletTilesApplicationContext(javax.portlet.PortletContext context)
Creates a new instance of PortletTilesApplicationContext.
|
| Modifier and Type | Method and Description |
|---|---|
TilesRequestContext |
createRequestContext(Object request,
Object response)
|
Map<String,Object> |
getApplicationScope()
Returns a mutable Map that maps application scope attribute names to
their values.
|
Object |
getContext()
Returns the original, technology-dependent, context.
|
Map<String,String> |
getInitParams()
Return an immutable Map that maps context application initialization
parameters to their values.
|
javax.portlet.PortletContext |
getPortletContext()
Return the
PortletContext for this context. |
URL |
getResource(String path)
Return a URL for the application resource mapped to the specified path.
|
Set<URL> |
getResources(String path)
Return a URL for the application resource mapped to the specified path.
|
void |
initialize(javax.portlet.PortletContext context)
Initialize (or reinitialize) this
PortletTilesApplicationContext instance
for the specified Portlet API objects. |
void |
release()
Release references to allocated resources acquired in
initialize() of via subsequent processing. |
protected javax.portlet.PortletContext context
The PortletContext for this web application.
public PortletTilesApplicationContext(javax.portlet.PortletContext context)
context - The portlet context to use.public Object getContext()
getContext in interface TilesApplicationContextpublic void initialize(javax.portlet.PortletContext context)
Initialize (or reinitialize) this PortletTilesApplicationContext instance
for the specified Portlet API objects.
context - The PortletContext for this web applicationpublic void release()
Release references to allocated resources acquired in
initialize() of via subsequent processing. After this
method is called, subsequent calls to any other method than
initialize() will return undefined results.
public javax.portlet.PortletContext getPortletContext()
Return the PortletContext for this context.
public Map<String,Object> getApplicationScope()
getApplicationScope in interface TilesApplicationContextpublic Map<String,String> getInitParams()
getInitParams in interface TilesApplicationContextpublic URL getResource(String path) throws IOException
getResource in interface TilesApplicationContextpath - to the desired resource.IOException - if the path is malformedpublic Set<URL> getResources(String path) throws IOException
getResources in interface TilesApplicationContextpath - to the desired resource.IOException - if the url is illegalpublic TilesRequestContext createRequestContext(Object request, Object response)
TilesRequestContextFactory.createRequestContext(TilesApplicationContext, Object...)
.request - The request object.response - The response object.Copyright © 2025. All rights reserved.