public class I2PSnarkServlet extends BasicServlet
BasicServlet.HttpContent| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static java.lang.String |
PROP_CONFIG_FILE |
_context, _log, _resourceBase| コンストラクタ | 説明 |
|---|---|
I2PSnarkServlet() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
void |
destroy() |
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Handle what we can here, calling super.doGet() for the rest.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Handle what we can here, calling super.doPost() for the rest.
|
java.io.File |
getResource(java.lang.String pathInContext) |
We override this to set the file relative to the storage dirctory
for the torrent.
|
void |
init(javax.servlet.ServletConfig cfg) |
|
(package private) java.lang.String |
toIcon(java.lang.String path) |
Pick an icon; try to catch the common types in an i2p environment
Pkg private for FileTypeSorter.
|
(package private) static java.lang.String |
urlify(java.lang.String s) |
This is for a full URL.
|
addMimeMapping, addPaths, decodePath, doDelete, doOptions, doTrace, encodePath, getContent, getMimeType, loadMimeMap, passConditionalHeaders, sendData, setResourceBase, setWarBase, writeHeaderspublic static final java.lang.String PROP_CONFIG_FILE
public void init(javax.servlet.ServletConfig cfg)
throws javax.servlet.ServletException
init クラス内 BasicServletjavax.servlet.ServletExceptionpublic void destroy()
destroy クラス内 javax.servlet.GenericServletpublic java.io.File getResource(java.lang.String pathInContext)
getResource クラス内 BasicServletpathInContext - should always start with /public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet クラス内 BasicServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost クラス内 BasicServletjavax.servlet.ServletExceptionjava.io.IOExceptionstatic java.lang.String urlify(java.lang.String s)
java.lang.String toIcon(java.lang.String path)