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, service
protected 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.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected 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.ServiceException
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 doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.