public class LocalUploadServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
D4SR |
static String |
D4ST |
static String |
FILE |
static String |
ID_FOLDER |
static String |
IS_OVERWRITE |
protected static org.apache.log4j.Logger |
logger |
static String |
UPLOAD_FORM_ELEMENT |
static String |
UPLOAD_TYPE |
protected static String |
UTF_8 |
Constructor and Description |
---|
LocalUploadServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init() |
FileInputStream |
openInputStream(File file) |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
String message) |
protected void |
sendMessage(javax.servlet.http.HttpServletResponse response,
String message) |
protected void |
sendWarnMessage(javax.servlet.http.HttpServletResponse response,
String message) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected static final String UTF_8
public static final String UPLOAD_TYPE
public static final String ID_FOLDER
public static final String UPLOAD_FORM_ELEMENT
public static final String IS_OVERWRITE
public static final String FILE
protected static org.apache.log4j.Logger logger
public static final String D4ST
public static final String D4SR
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public FileInputStream openInputStream(File file) throws IOException
file
- IOException
protected void sendError(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void sendMessage(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
protected void sendWarnMessage(javax.servlet.http.HttpServletResponse response, String message) throws IOException
IOException
Copyright © 2016. All Rights Reserved.