public class HttpResolver
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTENT_TYPE |
protected static String |
FILE_NAME |
protected static String |
SMP_PATH_SEPARATOR |
protected static String |
SMP_URI |
protected static String |
VALIDATION |
| Constructor and Description |
|---|
HttpResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.ServletConfig conf) |
protected void |
sendErrorQuietly(javax.servlet.http.HttpServletResponse response,
int code)
Send error quietly.
|
protected static String |
validateItemName(String smpPath,
String fileName)
Validate item name.
|
doDelete, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static final String SMP_URI
protected static final String VALIDATION
protected static final String CONTENT_TYPE
protected static final String FILE_NAME
protected static final String SMP_PATH_SEPARATOR
public void init(javax.servlet.ServletConfig conf)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionprotected static String validateItemName(String smpPath, String fileName) throws Exception
smpPath - the smp pathfileName - the file nameException - the exceptionprotected void sendErrorQuietly(javax.servlet.http.HttpServletResponse response,
int code)
response - the responsecode - the codeprotected void doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doHead in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
doPost in class javax.servlet.http.HttpServletIOExceptionCopyright © 2018. All Rights Reserved.