public class JarResourceServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_PATH |
static String |
DEFAULT_MIME_TYPE |
static String |
DEFAULT_PATH_SPEC |
Constructor and Description |
---|
JarResourceServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
determineMimeType(String file) |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected byte[] |
expandTemplates(byte[] buffer,
String mimetype) |
String |
getBasepath() |
protected String |
getFile(HttpServletRequest request) |
void |
init() |
void |
setBasepath(String basepath) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public static final String DEFAULT_PATH_SPEC
public static final String DEFAULT_BASE_PATH
public static final String DEFAULT_MIME_TYPE
public void init() throws ServletException
init
in class GenericServlet
ServletException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected String getFile(HttpServletRequest request)
protected byte[] expandTemplates(byte[] buffer, String mimetype)
public String getBasepath()
public void setBasepath(String basepath)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.