|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.noderunner.amazon.s3.emulator.Server
public class Server
Amazon S3 emulator that stores data in an internal sorted map. Not highly scalable or reliable, but may be fine for testing your application. Some browse methods are not complete. Get Data/Put/Head are mostly complete. What's supported is in the test suite.
Constructor Summary | |
---|---|
Server()
|
Method Summary | |
---|---|
void |
close()
Closes socket, stops accepting requests. |
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
int |
getPort()
Listening port. |
void |
log(java.lang.String s)
|
void |
start()
Starts accepting requests. |
java.lang.String |
toString()
Returns a debug String . |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doOptions, doPost, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Server() throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
protected void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doDelete
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public int getPort()
public void start()
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doHead
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void log(java.lang.String s)
log
in class javax.servlet.GenericServlet
public java.lang.String toString()
String
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |