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, Servlet, ServletConfig
public class JarResourceServlet
- extends 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 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 ServletException
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
getFile
protected String getFile(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.