Class VabOperationsProvider.VabHttpOperationsBuilder

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder, de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.Server>
    Enclosing class:
    VabOperationsProvider

    static class VabOperationsProvider.VabHttpOperationsBuilder
    extends java.lang.Object
    implements de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder
    The protocol server builder for this provider.
    Author:
    Holger Eichelberger, SSE
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder

        de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec, de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadConsumer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private VabOperationsProvider instance  
      private de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore  
      private int port  
      private de.iip_ecosphere.platform.support.Schema schema  
    • Constructor Summary

      Constructors 
      Constructor Description
      VabHttpOperationsBuilder​(int port, de.iip_ecosphere.platform.support.Schema schema, de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore)
      Creates a builder instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.iip_ecosphere.platform.support.Server build()  
      de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec createPayloadCodec()  
      de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder defineOperation​(java.lang.String name, java.util.function.Function<java.lang.Object[],​java.lang.Object> function)  
      de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder defineProperty​(java.lang.String name, java.util.function.Supplier<java.lang.Object> get, java.util.function.Consumer<java.lang.Object> set)  
      boolean isAvailable​(java.lang.String host)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder

        isAvailable, isAvailable
    • Field Detail

      • port

        private int port
      • schema

        private de.iip_ecosphere.platform.support.Schema schema
      • kstore

        private de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore
    • Constructor Detail

      • VabHttpOperationsBuilder

        VabHttpOperationsBuilder​(int port,
                                 de.iip_ecosphere.platform.support.Schema schema,
                                 de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore)
        Creates a builder instance.
        Parameters:
        port - the target communication port
        kstore - the key store descriptor, ignored if null
        schema - the protocol schema, shall be Schema.HTTP or Schema.HTTPS
    • Method Detail

      • defineOperation

        public de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder defineOperation​(java.lang.String name,
                                                                                           java.util.function.Function<java.lang.Object[],​java.lang.Object> function)
        Specified by:
        defineOperation in interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder
      • defineProperty

        public de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder defineProperty​(java.lang.String name,
                                                                                          java.util.function.Supplier<java.lang.Object> get,
                                                                                          java.util.function.Consumer<java.lang.Object> set)
        Specified by:
        defineProperty in interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder
      • build

        public de.iip_ecosphere.platform.support.Server build()
        Specified by:
        build in interface de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.Server>
      • createPayloadCodec

        public de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder.PayloadCodec createPayloadCodec()
        Specified by:
        createPayloadCodec in interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder
      • isAvailable

        public boolean isAvailable​(java.lang.String host)
        Specified by:
        isAvailable in interface de.iip_ecosphere.platform.support.aas.ProtocolServerBuilder