org.mule.transport.servlet
Class JarResourceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mule.transport.servlet.JarResourceServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class JarResourceServlet
- extends javax.servlet.http.HttpServlet
A servlet for loading resources loaded in jar files. This allows javascript, html
and images to be bundled into a jar This servlet also supports property
placeholders for html, xml and json files. This allows for server configuration to
be injected into static files.
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PATH_SPEC
public static final String DEFAULT_PATH_SPEC
- See Also:
- Constant Field Values
DEFAULT_BASE_PATH
public static final String DEFAULT_BASE_PATH
- See Also:
- Constant Field Values
DEFAULT_MIME_TYPE
public static final String DEFAULT_MIME_TYPE
- See Also:
- Constant Field Values
JarResourceServlet
public JarResourceServlet()
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getFile
protected String getFile(javax.servlet.http.HttpServletRequest request)
determineMimeType
protected String determineMimeType(String file)
expandTemplates
protected byte[] expandTemplates(byte[] buffer,
String mimetype)
getBasepath
public String getBasepath()
setBasepath
public void setBasepath(String basepath)
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.