public class DomainFilter extends XMPPProcessor implements XMPPPacketFilterIfc, XMPPPreprocessorIfc
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_DOMAINS_KEY
Field description
|
static String |
ALLOWED_DOMAINS_LIST_KEY
Field description
|
ALL_NAMES, ALL_PATHS, cmpInfo
CLIENT_XMLNS
Constructor and Description |
---|
DomainFilter() |
Modifier and Type | Method and Description |
---|---|
void |
filter(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results)
Method description
|
DomainFilterPolicy |
getDomains(XMPPResourceConnection session)
Method description
|
String[] |
getDomainsList(XMPPResourceConnection session)
Method description
|
String |
id()
Describe
id method here. |
boolean |
preProcess(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
String[][] |
supElementNamePaths()
Method description
|
String[] |
supNamespaces()
Describe
supNamespaces method here. |
canHandle, compareTo, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getStatistics, init, isSupporting, supDiscoFeatures, supElements, supStreamFeatures, supTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, init, isSupporting, supDiscoFeatures, supElements, supStreamFeatures, supTypes
compareTo
public static final String ALLOWED_DOMAINS_KEY
public static final String ALLOWED_DOMAINS_LIST_KEY
public void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results)
filter
in interface XMPPPacketFilterIfc
packet
- session
- repo
- results
- public String id()
id
method here.id
in interface XMPPImplIfc
String
valuepublic boolean preProcess(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
preProcess
in interface XMPPPreprocessorIfc
packet
- session
- repo
- results
- settings
- public String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
supElementNamePaths
in class XMPPProcessor
String[][]
value is an array for element paths for which
the plugin offers processing capabilities. Each path is in form of a String array
in order to reduce parsing overhead.public String[] supNamespaces()
supNamespaces
method here.supNamespaces
in interface XMPPImplIfc
supNamespaces
in class XMPPProcessor
String[]
valuepublic DomainFilterPolicy getDomains(XMPPResourceConnection session) throws NotAuthorizedException, TigaseDBException
session
- NotAuthorizedException
TigaseDBException
public String[] getDomainsList(XMPPResourceConnection session) throws NotAuthorizedException, TigaseDBException
session
- NotAuthorizedException
TigaseDBException
Copyright © 2013 Tigase. All rights reserved.