Class Endpoint

    • Method Detail

      • builder

        public static Endpoint.Builder builder()
        Create a new EndpointType builder.
        Returns:
        EndpointType builder
      • getUrl

        public Expression getUrl()
        Returns the EndpointType URL as an expression.
        Returns:
        the endpoint URL expression.
      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<Expression>> getHeaders()
        Get the endpoint headers as a map of String to list of Expression values.
        Returns:
        the endpoint headers.
      • getProperties

        public java.util.Map<Identifier,​Literal> getProperties()
        Get the endpoint properties as a map of Identifier to Literal values.
        Returns:
        the endpoint properties.
      • getEndpointAuthSchemes

        public java.util.List<java.util.Map<Identifier,​Literal>> getEndpointAuthSchemes()
        Get the endpoint authSchemes property as a map of Identifier to Literal values.
        Returns:
        the list of endpoint authSchemes.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • typeCheck

        public Type typeCheck​(Scope<Type> scope)
        Description copied from interface: TypeCheck
        Checks whether the given types within a scope satisfy the constraints.
        Specified by:
        typeCheck in interface TypeCheck
        Parameters:
        scope - the scope to evaluate.
        Returns:
        the type validated by the scope check.