public class IconUploader
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
logger
The logger.
|
private static java.lang.String |
RELATIVE_DIR
The Constant RELATIVE_DIR.
|
private static long |
serialVersionUID
The Constant serialVersionUID.
|
Constructor and Description |
---|
IconUploader() |
Modifier and Type | Method and Description |
---|---|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
private static java.lang.String |
getFilename(java.lang.String fullString)
Gets the filename.
|
static void |
main(java.lang.String[] args)
The main method.
|
org.dom4j.Document |
parse(java.io.File file)
Parses the File
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final java.lang.String RELATIVE_DIR
protected org.apache.log4j.Logger logger
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
private static java.lang.String getFilename(java.lang.String fullString)
fullString
- the full string in windows or unix formatspublic org.dom4j.Document parse(java.io.File file) throws org.dom4j.DocumentException, java.io.IOException
file
- the fileorg.dom4j.DocumentException
java.io.IOException
- Signals that an I/O exception has occurred.public static void main(java.lang.String[] args)
args
- the arguments