|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.servlet.IlvManagerServletSupport
ilog.views.faces.dhtml.servlet.IlvFacesManagerServletSupport
public class IlvFacesManagerServletSupport
The IlvFacesManagerServletSupport class is an extension of the
IlvManagerServletSupport
that handles requests coming from the DHTML faces view component.
| Field Summary | |
|---|---|
protected static String |
IMAGE_MAP_GENERATOR_PARAM
The name of the image map generator request parameter. |
protected static String |
TILE_MANAGER_PARAM
|
| Fields inherited from class ilog.views.servlet.IlvManagerServletSupport |
|---|
ImageMapAreaGeneratorProperty |
| Fields inherited from interface ilog.views.faces.dhtml.IlvDHTMLFrameworkConstants |
|---|
SESSION_ID_PREFIX, STATE_URL, STATIC_LAYERS_COUNT_PARAM, TILE_MANAGER, UPDATE_INTERVAL |
| Fields inherited from interface ilog.views.faces.IlvFrameworkConstants |
|---|
ACTION_NAME, AUTO_REFRESH, BOUNDING_BOX, CONSTRAINED_ON_CONTENTS, INTERACTOR, INTERACTOR_ID, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, NB_BUTTONS, ORIENTATION, ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL, PAN_FACTOR, STATIC_LAYERS_COUNT, TILE_SIZE, VISIBLE_LAYERS, ZOOM_FACTOR, ZOOM_LEVELS |
| Constructor Summary | |
|---|---|
IlvFacesManagerServletSupport()
Deprecated. Beginning with JViews 8.1 use IlvFacesManagerServletSupport(ServletContext)
instead. |
|
IlvFacesManagerServletSupport(javax.servlet.ServletContext context)
Creates an new IlvFacesManagerServletSupport instance. |
|
| Method Summary | |
|---|---|
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 popup menu servlet support. |
protected BufferedImage |
generateImage(javax.servlet.http.HttpServletRequest request,
IlvRect bbox,
int width,
int height,
String[] requestedLayers,
Color bgColor,
boolean transparent)
Generates the image. |
protected 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 contents 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 popup 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. Overridden to configure the manager view for tiling and to add support for IlvJComponentGraphic objects. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String IMAGE_MAP_GENERATOR_PARAM
protected static final String TILE_MANAGER_PARAM
| Constructor Detail |
|---|
public IlvFacesManagerServletSupport()
IlvFacesManagerServletSupport(ServletContext)
instead.
IlvFacesManagerServletSupport instance.
public IlvFacesManagerServletSupport(javax.servlet.ServletContext context)
IlvFacesManagerServletSupport instance.
context - The servlet context| Method Detail |
|---|
protected IlvPopupMenuServletSupport createPopupMenuSupport()
createPopupMenuSupport in class IlvManagerServletSupport
protected FacesContext getFacesContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - The http request.response - The http response.
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 managergenerator - The image map generator
protected void installImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Installs the image map generator passed as a request parameter.
request - The HTTP requestresponse - The HTTP response
protected IlvImageMapAreaGenerator getImageMapAreaGenerator(javax.servlet.http.HttpServletRequest request,
IlvGraphic obj,
IlvManagerView view,
IlvTransformer t)
getImageMapAreaGenerator in class IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - The current HTTP request.response - The HTTP response.
false when the request is not recognized by this
servlet.
IOException
javax.servlet.ServletException
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 IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - 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 IlvManagerServletSupportrequest - The current HTTP request.view - The manager view returned by getManagerView.
javax.servlet.ServletExceptionprotected 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 IlvManagerServletSupportrequest - The current HTTP request.IlvManagerServletSupport.getManagerView(javax.servlet.http.HttpServletRequest)
|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||