ilog.views.faces
Class IlvResourceController
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
ilog.views.faces.IlvResourceController
- All Implemented Interfaces:
- IlvFacesConstants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class IlvResourceController
- extends javax.servlet.http.HttpServlet
- implements IlvFacesConstants
The resource controller servlet is in charge of loading resources
(.gif, .jpg, .js, and so on) from the client.
The resource description is given as a set of request parameters
that will be interpreted by the service method of this
servlet.
- Since:
- JViews 6.0
- See Also:
- Serialized Form
| Fields inherited from interface ilog.views.faces.IlvFacesConstants |
BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CORE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, ENABLED, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, GANTT_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_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, PROJECT, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlvResourceController
public IlvResourceController()
- Creates a new
IlvResourceController instance.
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Handles the resource request.
- Overrides:
service in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getResourceAsStream
public static InputStream getResourceAsStream(String resName)
- Gets a system resource in a stream.
- Parameters:
resName - The resource name.
- Throws:
MissingResourceException - if the resource could
not be read
getResourceAsStream
public static InputStream getResourceAsStream(javax.servlet.ServletContext context,
String resName)
- Gets a system resource in a stream.
- Throws:
MissingResourceException - if the resource could
not be read.
makeURLFromResource
public static String makeURLFromResource(String servletPath,
String resName,
String mimeType)
- Parameters:
servletPath - The path of the resource servlet.resName - The name of the resource.mimeType - The MIME type of the resource.
- Returns:
- A URL to retrieve this resource.
- Internal method or field: do not use!
- Creates a URL for the specified resource to be retrieved by the resource servlet.
makeURLFromResource
public static String makeURLFromResource(String servletPath,
String resName)
- Parameters:
servletPath - The path of the resource servlet.resName - The identifier of the bundle.
- Returns:
- A URL to retrieve this resource.
- Internal method or field: do not use!
- Creates a URL for the specified resource bundle to be retrieved by the resource servlet.
makeContextPathURL
public static String makeContextPathURL(String servletPath,
String path)
- Internal method or field: do not use!
makeURLFromResource
public static String makeURLFromResource(String contextPath,
String resourceManagerPath,
String resName,
String mimeType)
- Internal method or field: do not use!
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage.