Class Channel

    • Constructor Detail

      • Channel

        public Channel​(org.apache.http.impl.client.CloseableHttpClient closeableHttpClient)
    • Method Detail

      • get

        public <T extends org.bimserver.shared.interfaces.PublicInterface> T get​(String interfaceClass)
      • add

        public void add​(String interfaceClass,
                        org.bimserver.shared.interfaces.PublicInterface service)
      • getServiceInterfaces

        public Map<String,​org.bimserver.shared.interfaces.PublicInterface> getServiceInterfaces()
      • registerConnectDisconnectListener

        public void registerConnectDisconnectListener​(org.bimserver.shared.ConnectDisconnectListener connectDisconnectListener)
      • notifyOfConnect

        public void notifyOfConnect()
      • notifyOfDisconnect

        public void notifyOfDisconnect()
      • finish

        protected void finish​(org.bimserver.shared.reflector.Reflector reflector,
                              org.bimserver.shared.reflector.ReflectorFactory reflectorFactory)
      • disconnect

        public abstract void disconnect()
      • connect

        public abstract void connect​(org.bimserver.shared.TokenHolder tokenHolder)
                              throws org.bimserver.shared.ChannelConnectionException
        Throws:
        org.bimserver.shared.ChannelConnectionException
      • checkinSync

        public org.bimserver.interfaces.objects.SLongCheckinActionState checkinSync​(String baseAddress,
                                                                                    String token,
                                                                                    long poid,
                                                                                    String comment,
                                                                                    long deserializerOid,
                                                                                    boolean merge,
                                                                                    long fileSize,
                                                                                    String filename,
                                                                                    InputStream inputStream,
                                                                                    Long topicId)
                                                                             throws org.bimserver.shared.exceptions.ServerException,
                                                                                    org.bimserver.shared.exceptions.UserException
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
      • getJsonConverter

        protected org.bimserver.shared.json.JsonConverter getJsonConverter()
      • getSServicesMap

        protected org.bimserver.shared.meta.SServicesMap getSServicesMap()
      • checkinAsync

        public long checkinAsync​(String baseAddress,
                                 String token,
                                 long poid,
                                 String comment,
                                 long deserializerOid,
                                 boolean merge,
                                 long fileSize,
                                 String filename,
                                 InputStream inputStream,
                                 long topicId)
                          throws org.bimserver.shared.exceptions.ServerException,
                                 org.bimserver.shared.exceptions.UserException
        Throws:
        org.bimserver.shared.exceptions.ServerException
        org.bimserver.shared.exceptions.UserException
      • get

        public <T extends org.bimserver.shared.interfaces.PublicInterface> T get​(Class<T> class1)
                                                                          throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        get in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getAdminInterface

        public org.bimserver.shared.interfaces.AdminInterface getAdminInterface()
                                                                         throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getAdminInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getAuthInterface

        public org.bimserver.shared.interfaces.AuthInterface getAuthInterface()
                                                                       throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getAuthInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getLowLevelInterface

        public org.bimserver.shared.interfaces.LowLevelInterface getLowLevelInterface()
                                                                               throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getLowLevelInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getMeta

        public org.bimserver.shared.interfaces.MetaInterface getMeta()
                                                              throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getMeta in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getPluginInterface

        public org.bimserver.shared.interfaces.PluginInterface getPluginInterface()
                                                                           throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getPluginInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getRegistry

        public org.bimserver.shared.interfaces.NotificationRegistryInterface getRegistry()
                                                                                  throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getRegistry in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getSettingsInterface

        public org.bimserver.shared.interfaces.SettingsInterface getSettingsInterface()
                                                                               throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getSettingsInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getServiceInterface

        public org.bimserver.shared.interfaces.ServiceInterface getServiceInterface()
                                                                             throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getServiceInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • getNewServicesInterface

        public org.bimserver.shared.interfaces.NewServicesInterface getNewServicesInterface()
                                                                                     throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Specified by:
        getNewServicesInterface in interface org.bimserver.shared.ServiceHolder
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • has

        protected boolean has​(Class<? extends org.bimserver.shared.interfaces.PublicInterface> interface1)
      • getBimServerAuthInterface

        public org.bimserver.shared.interfaces.AuthInterface getBimServerAuthInterface()
                                                                                throws org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
        Throws:
        org.bimserver.shared.exceptions.PublicInterfaceNotFoundException
      • bulkCheckin

        public void bulkCheckin​(String baseAddress,
                                String token,
                                long poid,
                                String comment,
                                Path file)
                         throws org.bimserver.shared.exceptions.UserException,
                                org.bimserver.shared.exceptions.ServerException
        Throws:
        org.bimserver.shared.exceptions.UserException
        org.bimserver.shared.exceptions.ServerException