public class SvcRequestHandler extends org.bedework.util.jms.listeners.JmsSysEventListener implements EventregRequestHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.impl.client.CloseableHttpClient |
client |
protected org.bedework.util.xml.XmlEmit |
davXml |
protected StringWriter |
davXmlSw |
| Constructor and Description |
|---|
SvcRequestHandler(EventregProperties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(org.bedework.util.jms.events.SysEvent ev) |
void |
addNamespace(org.bedework.util.xml.XmlEmit xml) |
void |
addRequest(EventregRequest val) |
void |
close()
Shut down the process
|
boolean |
closeDb() |
protected String |
endDavEmit() |
protected org.apache.http.impl.client.CloseableHttpClient |
getClient() |
EventregProperties |
getSysInfo() |
boolean |
isRunning()
Lifecycle
|
void |
listen()
Listen for messages and process them.
|
protected String |
makePrincipal(String id) |
void |
openDb() |
protected boolean |
postXml(String xml) |
void |
start()
Lifecycle
|
protected org.bedework.util.xml.XmlEmit |
startDavEmit() |
void |
stop()
Lifecycle
|
protected boolean |
subscribeNotifications(Registration reg) |
getLogger, onException, onMessage, open, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaudit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warnprotected StringWriter davXmlSw
protected org.bedework.util.xml.XmlEmit davXml
protected org.apache.http.impl.client.CloseableHttpClient client
public SvcRequestHandler(EventregProperties props) throws Throwable
Throwablepublic void action(org.bedework.util.jms.events.SysEvent ev)
throws org.bedework.util.jms.NotificationException
action in class org.bedework.util.jms.listeners.JmsSysEventListenerorg.bedework.util.jms.NotificationExceptionpublic void listen()
EventregRequestHandlerlisten in interface EventregRequestHandlerpublic void addRequest(EventregRequest val) throws Throwable
addRequest in interface EventregRequestHandlerval - a request for processingThrowablepublic void close()
EventregRequestHandlerclose in interface EventregRequestHandlerclose in class org.bedework.util.jms.listeners.JmsSysEventListenerpublic boolean isRunning()
EventregRequestHandlerisRunning in interface EventregRequestHandlerpublic void start()
EventregRequestHandlerstart in interface EventregRequestHandlerpublic void stop()
EventregRequestHandlerstop in interface EventregRequestHandlerpublic EventregProperties getSysInfo()
public boolean closeDb()
protected boolean subscribeNotifications(Registration reg) throws Throwable
Throwableprotected boolean postXml(String xml) throws EventregException
EventregExceptionprotected org.apache.http.impl.client.CloseableHttpClient getClient()
throws EventregException
EventregExceptionprotected org.bedework.util.xml.XmlEmit startDavEmit()
throws EventregException
EventregExceptionprotected String endDavEmit() throws EventregException
EventregExceptionpublic void addNamespace(org.bedework.util.xml.XmlEmit xml)
throws EventregException
EventregExceptionCopyright © 2019 Bedework. All rights reserved.