Package de.xima.fc.portal.runtime
Class PortalRuntime
java.lang.Object
de.xima.fc.portal.runtime.PortalRuntime
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionPortalRuntime(PluginRuntime prtm, IPluginPortal plugin) Creates a new runtime for a given portal plugin. -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanhandleContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) Handles an HTTP request by invoking the appropriate filters and servlets.voidinitialize(javax.servlet.ServletContext context) Deprecated.You should not initialize the runtime yourself, it will be initialized when required.voidshutdown()
-
Constructor Details
-
PortalRuntime
Creates a new runtime for a given portal plugin.- Parameters:
prtm- The runtime of the plugin.plugin- The portal plugin to wrap.
-
-
Method Details
-
getValidatorIdMap
- Returns:
- A map with all validators contained in the portal plugin. The key is the
IDof the validator.
-
getConverterTypeMap
- Returns:
- A map with all converters contained in the portal plugin. The key is the
target typeof the converter.
-
getConverterIdMap
- Returns:
- A map with all converters contained in the portal plugin. The key is the
IDof the converter.
-
getRegistrationDate
public long getRegistrationDate()- Returns:
- The time when this runtime was registered, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
-
getPlugin
- Returns:
- The portal plugin for which this runtime was created.
-
getPluginRuntime
- Returns:
- The plugin runtime of the portal plugin for which this runtime was created.
-
getContextName
- Returns:
- The name of the portal plugin context. This is the name that needs to be used as part of the URL to enter the context of the portal plugin.
-
initialize
Deprecated.You should not initialize the runtime yourself, it will be initialized when required.- Parameters:
context- Servlet context with which to initialize the portal.
-
handleContext
public boolean handleContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) Handles an HTTP request by invoking the appropriate filters and servlets.- Parameters:
request- The current servlet request being made by the client.response- The current servlet response being constructed.chain- The original filter chain.- Returns:
trueif the context was handled by this runtime,falseotherwise.
-
shutdown
- Throws:
RuntimeException- When the plugin could not be shut down.
-