public class Shoutbox extends Service
Modifier and Type | Class and Description |
---|---|
static class |
Shoutbox.DefaultNameProvider |
static interface |
Shoutbox.NameProvider |
static class |
Shoutbox.Shout
POJO Shout is the most common message structure being sent from client to
WSServer and from WSServer broadcasted to clients - therefore instead of a
seperate system message we will have system data components of the shout -
these are to display server data on the clients
|
Modifier and Type | Field and Description |
---|---|
protected Calendar |
cal |
static org.slf4j.Logger |
log |
static String |
ORGIN_WEB |
static String |
ORGIN_XMPP |
protected SimpleDateFormat |
tsFormatter |
static String |
TYPE_SYSTEM |
static String |
TYPE_USER |
authProvider, defaultLocalization, dnaPool, fs, id, inbox, interfaceSet, isVirtual, lastError, lastErrorTs, lastStatus, lastStatusTs, locale, localization, methodSet, outbox, ps, ready, serviceClass, serviceType, serviceVersion, simpleName, statusBroadcastLimitMs, thisThread
addListener, addListener, addListener, addListener, addTask, addTask, addTask, addTaskOneShot, attach, attach, broadcast, broadcast, broadcastState, broadcastStatus, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyResource, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, export, export, exportAll, exportAll, getAttached, getCountry, getDataDir, getDataDir, getDataInstanceDir, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDisplayLanguage, getDna, getDnaString, getFile, getFullName, getHomeDir, getHostName, getId, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLanguage, getLastError, getLocale, getLocaleTag, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeer, getPeerKey, getPeerName, getResource, getResource, getResource, getResourceAsString, getResourceAsString, getResourceAsString, getResourceDir, getResourceDir, getResourceDir, getResourceDir, getResourceDirList, getResourceDirList, getResourceImage, getResourceRoot, getRootDataDir, getServiceIcon, getServiceIcon, getServiceIcon, getServiceScript, getServiceScript, getServiceScript, getSimpleName, getSwagger, getTasks, getThisThread, getType, hasError, hasInternet, hasPeers, hasSubscribed, help, in, info, info, invoke, invoke, invoke, invokeOn, invokeOn, invokePeer, invokePeer, isAttached, isAttached, isDev, isHeadless, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, loadAndStart, loadFromJson, loadFromJson, loadLocalizations, localize, localize, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, preShutdown, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeer, releasePeers, releaseService, removeAllListeners, removeListener, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, sendToPeer, sendToPeer, setId, setInstanceId, setLocale, setName, setOrder, setPeer, setReady, setSecurityProvider, setState, setThisThread, setVirtual, sleep, sleep, stackToString, startPeer, startPeer, startPeers, stopService, subscribe, subscribe, subscribe, subscribeTo, subscribeToRuntime, toString, unsubscribe, unsubscribe, unsubscribe, unsubscribeTo, unsubscribeToRuntime, updateStats, warn, warn
public static final org.slf4j.Logger log
public static final String TYPE_SYSTEM
public static final String TYPE_USER
public static final String ORGIN_XMPP
public static final String ORGIN_WEB
protected transient SimpleDateFormat tsFormatter
protected transient Calendar cal
public void archive(Shoutbox.Shout shout)
public Shoutbox.Shout createShout(String type, String msg)
public void getXMPPRelays()
public void loadShouts()
public void setNickName(String nickname)
public void mimicTuring(String msg)
public void onXMPPMsg(Xmpp.XmppMsg xmppMsg)
public void shout(String msg)
public Shoutbox.Shout publishShout(Shoutbox.Shout shout) throws org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.XMPPException, IOException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.XMPPException
IOException
public void savePredicates()
public void setNameProvider(Shoutbox.NameProvider nameProvider2)
public Shoutbox.NameProvider setNameProvider(String classname) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public void startChatBot() throws IOException
IOException
public void startService()
startService
in interface ServiceInterface
startService
in class Service
public static void main(String[] args)
Copyright © 2020 myrobotlab. All rights reserved.