nl.knowledgeplaza.dh.service
Class ServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by com.caucho.burlap.server.BurlapServlet
          extended by nl.knowledgeplaza.dh.service.ServiceImpl
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, nl.knowledgeplaza.dh.service.Service
Direct Known Subclasses:
EntryServiceImpl

public class ServiceImpl
extends com.caucho.burlap.server.BurlapServlet
implements nl.knowledgeplaza.dh.service.Service

Version:
$Revision: 1.25 $
See Also:
Serialized Form

Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
ServiceImpl()
           
 
Method Summary
 boolean checkUserActive()
           
protected  nl.knowledgeplaza.util.pool.ObjectPool getConnectionPool()
          Get the database connection pool
static nl.knowledgeplaza.util.pool.ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request)
          Get the database connection pool
 javax.servlet.http.HttpServletRequest getRequest()
          Get the current request Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.
 javax.servlet.http.HttpSession getSession()
          Get the current session Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.
 java.lang.String getUsername()
           
 java.lang.String ping()
          The other side of the ping
 void service(javax.servlet.ServletRequest r, javax.servlet.ServletResponse r2)
          Hook in to get the session Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.
 boolean useMockHessian()
          The service also can run in MOCK mode (skipping the Hessian communication layer).
 boolean useMockJdbc()
          The service also can run in MOCK mode (that is not using running agains the oracle database but against HSQLDB using CSV tables).
 
Methods inherited from class com.caucho.burlap.server.BurlapServlet
getServletInfo, init, setAPIClass, setService
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

ServiceImpl

public ServiceImpl()
Method Detail

useMockHessian

public boolean useMockHessian()
The service also can run in MOCK mode (skipping the Hessian communication layer).


useMockJdbc

public boolean useMockJdbc()
The service also can run in MOCK mode (that is not using running agains the oracle database but against HSQLDB using CSV tables). TODO


ping

public java.lang.String ping()
The other side of the ping

Specified by:
ping in interface nl.knowledgeplaza.dh.service.Service

getSession

public javax.servlet.http.HttpSession getSession()
Get the current session Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.

Returns:

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Get the current request Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.

Returns:

service

public void service(javax.servlet.ServletRequest r,
                    javax.servlet.ServletResponse r2)
             throws java.io.IOException,
                    javax.servlet.ServletException
Hook in to get the session Unfortunately Hessian & Burlap are not based on HttpServlets but regular Servlets, so we need to force the issue a bit here.

Specified by:
service in interface javax.servlet.Servlet
Overrides:
service in class com.caucho.burlap.server.BurlapServlet
Throws:
java.io.IOException
javax.servlet.ServletException

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface nl.knowledgeplaza.dh.service.Service

checkUserActive

public boolean checkUserActive()
Specified by:
checkUserActive in interface nl.knowledgeplaza.dh.service.Service

getConnectionPool

protected nl.knowledgeplaza.util.pool.ObjectPool getConnectionPool()
Get the database connection pool


getConnectionPool

public static nl.knowledgeplaza.util.pool.ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request)
Get the database connection pool



Copyright © 2010 KnowledgePlaza. All Rights Reserved.