|
||||||||||
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
jet.servlet.JetMashupProxy
public class JetMashupProxy
The servlet - the core class of the jet turbine
Field Summary | |
---|---|
protected net.sf.ehcache.Cache |
cache
Simple Cache for filessmaller than 40960 bytes |
private java.util.HashMap |
debug
Holds the regex which hosts etc. are allowed to use debug |
private java.util.concurrent.locks.Lock |
lock
|
private org.apache.log4j.Logger |
log
logger object |
private java.util.HashMap |
rights
Holds the regex which hosts etc. are allowed to use status |
private javax.servlet.ServletContext |
servletContext
the servlet context object |
private java.util.HashMap |
status
Holds the regex which hosts etc. are allowed to use status |
Constructor Summary | |
---|---|
JetMashupProxy()
|
Method Summary | |
---|---|
void |
destroy()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP POST method. |
javax.servlet.ServletContext |
getServletContext()
|
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
void |
init(javax.servlet.ServletConfig config)
Method to initialize the jet resouce provider servlet |
protected void |
initCache()
Method to initialize the ehcache - initialze only if not aready done |
boolean |
isDebug(java.lang.String key)
indicates if the servlet allows debug modus in jetcontext |
boolean |
isRights(java.lang.String url)
indicates if the servlet allows status modus in jetcontext |
boolean |
isStatus(java.lang.String host)
indicates if the servlet allows status modus in jetcontext |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST methods. |
void |
refresh()
Refresh the resource cache |
private void |
setDebug(java.lang.String regex)
Set if debug is allowed |
private void |
setRights(java.lang.String regex)
Set which class regex are fetchable |
private void |
setStatus(java.lang.String regex)
Set if status is allowed |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.concurrent.locks.Lock lock
protected net.sf.ehcache.Cache cache
private org.apache.log4j.Logger log
private java.util.HashMap debug
private java.util.HashMap status
private java.util.HashMap rights
private javax.servlet.ServletContext servletContext
Constructor Detail |
---|
public JetMashupProxy()
Method Detail |
---|
protected void initCache()
protected final void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
GET
and POST
methods.
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
java.io.IOException
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- servlet config
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
GET
method.
doGet
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
POST
method.
doPost
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet response
javax.servlet.ServletException
java.io.IOException
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public void refresh() throws java.io.IOException
java.io.IOException
public final boolean isDebug(java.lang.String key)
private final void setDebug(java.lang.String regex)
public final boolean isStatus(java.lang.String host)
public final boolean isRights(java.lang.String url)
private final void setStatus(java.lang.String regex)
private final void setRights(java.lang.String regex)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.ServletConfig
getServletContext
in class javax.servlet.GenericServlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |