public class IlvFacesManagerServletSupport extends IlvManagerServletSupport implements IlvFacesConstants, IlvDHTMLFrameworkConstants
IlvFacesManagerServletSupport
class is an extension of the
IlvManagerServletSupport
that handles requests coming from the DHTML faces view component.Modifier and Type | Field and Description |
---|---|
protected static String |
IMAGE_MAP_GENERATOR_PARAM
The name of the image map generator request parameter.
|
protected static String |
TILE_MANAGER_PARAM |
ImageMapAreaGeneratorProperty
SESSION_ID_PREFIX, STATE_URL, STATIC_LAYERS_COUNT_PARAM, TILE_MANAGER, UPDATE_INTERVAL
AUTO_REFRESH, BOUNDING_BOX, COLOR, CONSTRAINED_ON_CONTENTS, GROUPABLE, HITMAP_LAYERS, IGNORE_CONTENT_ASPECT_RATIO, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, OPACITY, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TEMPLATE, TILE_SIZE, TOLERANCE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS
ACCESSIBLE, ACTION_NAME, AUTO_SUBMIT, BACKGROUND_COLOR, CAPABILITIES_LOADED_HANDLER, COMPONENT, DO_ACTION_ON_BG_DESELECT, ERROR_MESSAGE, GENERATE_IMAGE_MAP, HOTKEYS, IMAGE_FORMAT, IMAGE_LOADED_HANDLER, IMAGE_MAP_GENERATOR, IMAGE_MAP_GENERATOR_CLASS, IMAGE_MAP_VISIBLE, IMAGE_SERVLET_CONTEXT, INVOCATION_CONTEXT, JSF_CONTEXT, ON_CLICK, ON_SELECTION_CHANGED, PARTIAL_SUBMIT, PORTLET_CONTEXT_KEY, PORTLET_SESSION_KEY, REPLACE_PATTERN, RESIZABLE, SELECTION_RESIZABLE_CLASS, SESSION_EXP_HANDLER, SUBMITTED_VALUE, WAITING_IMAGE
AFTER_HANDLER, BASETEXTDIRECTION, BEFORE_HANDLER, BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CHARTS_MESSAGE_BUNDLE, CORE_BUNDLE, CORE_MESSAGE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, DIAGRAMMER_MESSAGE_BUNDLE, ENABLED, EVENT_TYPE, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, FRAMEWORK_MESSAGE_BUNDLE, GANTT_BUNDLE, GANTT_MESSAGE_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, INTERACTORS, INTERCEPT_INTERACTOR, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MAPS_MESSAGE_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROGRESSIVE_ZOOM, PROJECT, RENDER, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SCROLL_BAR, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TGO_MESSAGE_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH
Constructor and Description |
---|
IlvFacesManagerServletSupport()
Deprecated.
Beginning with JViews 8.1 use
IlvFacesManagerServletSupport(ServletContext)
instead. |
IlvFacesManagerServletSupport(javax.servlet.ServletContext context)
Creates an new
IlvFacesManagerServletSupport instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalCapabilities(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletOutputStream out,
String mimeFormat)
Allows you to add additional capabilities to the capability request.
|
protected IlvPopupMenuServletSupport |
createPopupMenuSupport()
Creates a new instance of pop-up menu servlet support.
|
protected BufferedImage |
generateImage(javax.servlet.http.HttpServletRequest request,
IlvRect bbox,
int width,
int height,
String[] requestedLayers,
Color bgColor,
boolean transparent)
Deprecated.
|
protected javax.faces.context.FacesContext |
getFacesContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns an artificial faces context to use value bindings.
|
protected IlvImageMapAreaGenerator |
getImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
IlvGraphic obj,
IlvManagerView view,
IlvTransformer t)
Returns the area generator for the specified graphic object.
|
protected Object |
getLock(javax.servlet.http.HttpServletRequest request)
Returns a locking object that is used to lock the content of the manager
while it is being rendered.
|
IlvManagerView |
getManagerView(javax.servlet.http.HttpServletRequest request)
Returns the manager view used for the specified request.
|
protected IlvMenuFactory |
getMenuFactory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Retrieves or creates the menu factory used in this pop-up menu request.
|
IlvTileManager |
getTileManager(javax.servlet.http.HttpServletRequest request)
Returns the tile manager.
|
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responds to HTTP requests.
|
protected void |
installImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Installs the image map generator passed as a request parameter.
|
protected void |
installImageMapAreaGenerator(IlvManager manager,
IlvImageMapAreaGenerator generator)
Deprecated.
Since JViews 8.1 use
shouldGenerateImageMap(HttpServletRequest, IlvManagerLayer, IlvManagerView, IlvTransformer) } and/or
getImageMapAreaGenerator(HttpServletRequest, IlvGraphic, IlvManagerView, IlvTransformer) to filter the objects that will generate image map areas. |
protected boolean |
isOverviewRequest(javax.servlet.http.HttpServletRequest request)
Returns
true if the specified request is an overview image request, false otherwise. |
protected boolean |
isSessionExpired(javax.servlet.http.HttpServletRequest request)
This method returns
true if the session has expired. |
protected void |
prepareManagerView(javax.servlet.http.HttpServletRequest request,
IlvManagerView view)
Allows you to prepare the manager view content before the image is
generated or the capabilities are computed.
|
protected boolean |
shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request,
IlvManagerLayer layer,
IlvManagerView view,
IlvTransformer t)
Returns
true if image map information should be
generated for the specified layer. |
additionalCapabilities, addServerActionListener, addServerActionListener, beforeDraw, createSelectionSupport, encodeImage, generateImageWhenSessionExpired, getAdditionalCapabilities, getAntialiasing, getContentLengthEnable, getContext, getDefaultImageMapHREF, getDynamicLayers, getExpirationDate, getGraphicObjectComparator, getHitmapSupport, getInternalLock, getJPEGQuality, getKey, getLayers, getManagerBBox, getManagerLayerComparator, getMaxZoomLevel, getMinZoomLevel, getPopupMenuSupport, getSelectionSupport, getZoomLevels, isOverviewLayer, isPopupEnabled, isSelectionEnabled, isVerbose, removeServerActionListener, removeServerActionListener, setAntialiasing, setContentLengthEnable, setImageResponseCachePolicy, setJPEGQuality, setPopupEnabled, setSelectionEnabled, setVerbose, useTileManager
doGetScriptMessage, getParameterValidationListener, getScriptMessageSupport, setParameterValidationListener
protected static final String IMAGE_MAP_GENERATOR_PARAM
protected static final String TILE_MANAGER_PARAM
@Deprecated public IlvFacesManagerServletSupport()
IlvFacesManagerServletSupport(ServletContext)
instead.IlvFacesManagerServletSupport
instance.public IlvFacesManagerServletSupport(javax.servlet.ServletContext context)
IlvFacesManagerServletSupport
instance.context
- The servlet contextprotected IlvPopupMenuServletSupport createPopupMenuSupport()
createPopupMenuSupport
in class IlvManagerServletSupport
protected javax.faces.context.FacesContext getFacesContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- The HTTP request.response
- The HTTP response.@Deprecated protected void installImageMapAreaGenerator(IlvManager manager, IlvImageMapAreaGenerator generator)
shouldGenerateImageMap(HttpServletRequest, IlvManagerLayer, IlvManagerView, IlvTransformer)
} and/or
getImageMapAreaGenerator(HttpServletRequest, IlvGraphic, IlvManagerView, IlvTransformer)
to filter the objects that will generate image map areas.manager
- The manager.generator
- The image map generator.protected void installImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- The HTTP request.response
- The HTTP response.protected IlvImageMapAreaGenerator getImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request, IlvGraphic obj, IlvManagerView view, IlvTransformer t)
getImageMapAreaGenerator
in class IlvManagerServletSupport
request
- The current HTTP request.obj
- The graphic object for which the area will be generated.view
- The manager view for the specified request.t
- The transformer used to draw the view.protected boolean shouldGenerateImageMap(javax.servlet.http.HttpServletRequest request, IlvManagerLayer layer, IlvManagerView view, IlvTransformer t)
true
if image map information should be
generated for the specified layer.shouldGenerateImageMap
in class IlvManagerServletSupport
request
- The current HTTP request.layer
- The layer.view
- The manager view for the specified request.t
- The transformer used to draw the view.protected boolean isSessionExpired(javax.servlet.http.HttpServletRequest request)
true
if the session has expired.request
- The request being processed.true
if the session expired.protected boolean isOverviewRequest(javax.servlet.http.HttpServletRequest request)
true
if the specified request is an overview image request, false
otherwise.request
- The http request.true
if the specified request is an overview image request, false
otherwise.public IlvManagerView getManagerView(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
getManagerView
in class IlvManagerServletSupport
request
- The current HTTP request.javax.servlet.ServletException
protected IlvMenuFactory getMenuFactory(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
request
- The http request.response
- The http response.javax.servlet.ServletException
public boolean handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
false
if the request is not a request
recognized by this servlet.handleRequest
in class IlvManagerServletSupport
request
- The current HTTP request.response
- The HTTP response.false
when the request is not recognized by this
servlet.IOException
- The IOException
javax.servlet.ServletException
- The ServletException
@Deprecated protected BufferedImage generateImage(javax.servlet.http.HttpServletRequest request, IlvRect bbox, int width, int height, String[] requestedLayers, Color bgColor, boolean transparent) throws javax.servlet.ServletException
generateImage
in class IlvManagerServletSupport
request
- The current HTTP request.bbox
- The area of the manager to draw.width
- The width of the image.height
- The height of the image.requestedLayers
- An array of layer names to draw.bgColor
- The background color of the imagetransparent
- Indicates if the image should be transparent.javax.servlet.ServletException
public IlvTileManager getTileManager(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
getTileManager
in class IlvManagerServletSupport
request
- The http request.javax.servlet.ServletException
protected void additionalCapabilities(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletOutputStream out, String mimeFormat)
, 'myprop1' : 'myvalue1', 'myprop2' : 'myvalue2'
additionalCapabilities
in class IlvManagerServletSupport
request
- The current HTTP request.out
- The servlet output stream for writing additional
capabilities.mimeFormat
- since JViews 8.1 always set to "json"protected void prepareManagerView(javax.servlet.http.HttpServletRequest request, IlvManagerView view) throws javax.servlet.ServletException
IlvJComponentGraphic
objects.prepareManagerView
in class IlvManagerServletSupport
request
- The current HTTP request.view
- The manager view returned by getManagerView
.javax.servlet.ServletException
protected Object getLock(javax.servlet.http.HttpServletRequest request)
The default implementation returns an object that identifies the manager
view. This allows the getManagerView
method to always return the same
IlvManagerView
without leading to multithreading problems.
This lock must never be taken on the AWT/Swing thread, otherwise deadlocks may occur.
getLock
in class IlvManagerServletSupport
request
- The current HTTP request.IlvManagerServletSupport.getManagerView(javax.servlet.http.HttpServletRequest)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.