Package org.bedework.caldav.server.soap
Class SoapHandler
- java.lang.Object
-
- org.bedework.webdav.servlet.common.MethodBase
-
- org.bedework.caldav.server.soap.SoapHandler
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged,org.bedework.webdav.servlet.common.SecureXml
- Direct Known Subclasses:
CalwsHandler
public abstract class SoapHandler extends org.bedework.webdav.servlet.common.MethodBaseClass extended by classes which handle special SOAP requests, e.g. the exchange synch service etc.- Author:
- Mike Douglass
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoapHandler.UnmarshalResultUnpack the headers and body
-
Constructor Summary
Constructors Constructor Description SoapHandler(CaldavBWIntf intf)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringcheckUTC(ietf.params.xml.ns.icalendar_2.BasePropertyType bp)voiddoMethod(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)protected StringfindTzid(ietf.params.xml.ns.icalendar_2.BasePropertyType bp)protected StringgetAccount()protected CaldavBWIntfgetIntf()protected abstract StringgetJaxbContextPath()protected SysIntfgetSysi()voidinit()protected voidinitResponse(javax.servlet.http.HttpServletResponse resp)protected DocumentmakeDoc(QName name, Object o)protected javax.xml.bind.JAXBElementmakeJAXBElement(QName name, Class cl, Object o)protected voidmarshal(Object o, OutputStream out)protected voidremoveNode(Node nd)protected SoapHandler.UnmarshalResultunmarshal(javax.servlet.http.HttpServletRequest req)-
Methods inherited from class org.bedework.webdav.servlet.common.MethodBase
addDavHeader, addHeaders, addNs, addStatus, cdataProperty, checkDepth, checkServerInfo, closeTag, defaultDepth, doPropFind, emptyTag, emptyTag, flush, getChildren, getChildrenArray, getElementContent, getLogger, getNsAbbrev, getNsIntf, getOnlyChild, getResourceUri, getStatus, init, isEmpty, openTag, openTagNoNewline, parseContent, parseContent, property, property, propertyTagVal, startEmit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Field Detail
-
jc
protected javax.xml.bind.JAXBContext jc
-
monitor
protected static final Object monitor
-
-
Constructor Detail
-
SoapHandler
public SoapHandler(CaldavBWIntf intf) throws org.bedework.webdav.servlet.shared.WebdavException
- Parameters:
intf-- Throws:
org.bedework.webdav.servlet.shared.WebdavException- on soap error
-
-
Method Detail
-
getJaxbContextPath
protected abstract String getJaxbContextPath()
- Returns:
- String required to for JAXBContext.newInstance
-
init
public void init()
- Specified by:
initin classorg.bedework.webdav.servlet.common.MethodBase
-
initResponse
protected void initResponse(javax.servlet.http.HttpServletResponse resp)
-
doMethod
public void doMethod(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
doMethodin classorg.bedework.webdav.servlet.common.MethodBase- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
unmarshal
protected SoapHandler.UnmarshalResult unmarshal(javax.servlet.http.HttpServletRequest req) throws org.bedework.webdav.servlet.shared.WebdavException
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getAccount
protected String getAccount()
- Returns:
- current account
-
getSysi
protected SysIntf getSysi()
- Returns:
- SysIntf
-
getIntf
protected CaldavBWIntf getIntf()
-
makeDoc
protected Document makeDoc(QName name, Object o) throws org.bedework.webdav.servlet.shared.WebdavException
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
marshal
protected void marshal(Object o, OutputStream out) throws org.bedework.webdav.servlet.shared.WebdavException
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
makeJAXBElement
protected javax.xml.bind.JAXBElement makeJAXBElement(QName name, Class cl, Object o)
-
removeNode
protected void removeNode(Node nd) throws org.bedework.webdav.servlet.shared.WebdavException
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
findTzid
protected String findTzid(ietf.params.xml.ns.icalendar_2.BasePropertyType bp)
-
checkUTC
protected String checkUTC(ietf.params.xml.ns.icalendar_2.BasePropertyType bp)
-
-