Package tigase.http

Class ServiceImpl<T extends Module>

    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceImpl​(java.lang.String moduleUUID)  
      ServiceImpl​(T module)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkCredentials​(java.lang.String user, java.lang.String password)  
      tigase.db.AuthRepository getAuthRepository()  
      T getModule()  
      tigase.db.UserRepository getUserRepository()  
      boolean isAdmin​(tigase.xmpp.jid.BareJID user)  
      boolean isAllowed​(java.lang.String key, java.lang.String domain, java.lang.String path)  
      void sendPacket​(tigase.server.Packet packet, java.lang.Long timeout, groovy.lang.Closure closure)  
      void sendPacket​(tigase.server.Packet packet, java.lang.Long timeout, PacketWriter.Callback closure)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceImpl

        public ServiceImpl​(java.lang.String moduleUUID)
      • ServiceImpl

        public ServiceImpl​(T module)
    • Method Detail

      • sendPacket

        public void sendPacket​(tigase.server.Packet packet,
                               java.lang.Long timeout,
                               groovy.lang.Closure closure)
        Specified by:
        sendPacket in interface Service<T extends Module>
      • isAdmin

        public boolean isAdmin​(tigase.xmpp.jid.BareJID user)
        Specified by:
        isAdmin in interface Service<T extends Module>
      • isAllowed

        public boolean isAllowed​(java.lang.String key,
                                 java.lang.String domain,
                                 java.lang.String path)
        Specified by:
        isAllowed in interface Service<T extends Module>
      • checkCredentials

        public boolean checkCredentials​(java.lang.String user,
                                        java.lang.String password)
                                 throws tigase.util.stringprep.TigaseStringprepException,
                                        tigase.db.TigaseDBException,
                                        tigase.db.AuthorizationException
        Specified by:
        checkCredentials in interface Service<T extends Module>
        Throws:
        tigase.util.stringprep.TigaseStringprepException
        tigase.db.TigaseDBException
        tigase.db.AuthorizationException