public class BpiAdapterServlet
extends javax.servlet.http.HttpServlet
In addition to the openCRX REST servlet which exposes the full API of openCRX, the bpi adapter offers a lightweight, JSON based interface which simplifies the integration of 3rd party applications. The servlet allows to
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Map<org.openmdx.base.naming.Path,BpiAction> | 
actionRegistry  | 
protected boolean | 
logRequests  | 
protected BpiPlugIn | 
plugIn  | 
protected javax.jdo.PersistenceManagerFactory | 
pmf  | 
| Constructor and Description | 
|---|
BpiAdapterServlet()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
doGet(javax.servlet.http.HttpServletRequest req,
     javax.servlet.http.HttpServletResponse resp)  | 
protected void | 
doPost(javax.servlet.http.HttpServletRequest req,
      javax.servlet.http.HttpServletResponse resp)  | 
protected org.openmdx.base.naming.Path | 
getPath(javax.servlet.http.HttpServletRequest req)
Get path. 
 | 
protected javax.jdo.PersistenceManager | 
getPersistenceManager(javax.servlet.http.HttpServletRequest req)
Get persistence manager. 
 | 
void | 
init(javax.servlet.ServletConfig config)  | 
protected BpiPlugIn | 
newPlugIn()
Get extension. 
 | 
protected void | 
registerAction(org.openmdx.base.naming.Path pathPattern,
              BpiAction action)
Add action to registry. 
 | 
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected final java.util.Map<org.openmdx.base.naming.Path,BpiAction> actionRegistry
protected boolean logRequests
protected BpiPlugIn plugIn
protected javax.jdo.PersistenceManagerFactory pmf
protected void registerAction(org.openmdx.base.naming.Path pathPattern,
                              BpiAction action)
pathPattern - action - public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected javax.jdo.PersistenceManager getPersistenceManager(javax.servlet.http.HttpServletRequest req)
req - protected BpiPlugIn newPlugIn()
protected org.openmdx.base.naming.Path getPath(javax.servlet.http.HttpServletRequest req)
                                        throws org.openmdx.base.exception.ServiceException
req - org.openmdx.base.exception.ServiceExceptionprotected 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.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.