Class HttpParameters

  • All Implemented Interfaces:
    ExternalParameters

    public class HttpParameters
    extends java.lang.Object
    implements ExternalParameters
    Use to report an HTTP external call with cross application tracing.
    Since:
    3.36.0
    • Constructor Detail

      • HttpParameters

        protected HttpParameters​(java.lang.String library,
                                 java.net.URI uri,
                                 java.lang.String procedure,
                                 InboundHeaders inboundHeaders)
      • HttpParameters

        protected HttpParameters​(java.lang.String library,
                                 java.net.URI uri,
                                 java.lang.String procedure,
                                 InboundHeaders inboundHeaders,
                                 ExtendedInboundHeaders extendedInboundHeaders)
      • HttpParameters

        protected HttpParameters​(HttpParameters httpParameters)
    • Method Detail

      • getLibrary

        public java.lang.String getLibrary()
        Returns the name of the framework used to make the connection.
        Returns:
        the Framework name
        Since:
        3.36.0
      • getUri

        public java.net.URI getUri()
        Returns the URI for the external call.
        Returns:
        the URI for the call
        Since:
        3.36.0
      • getProcedure

        public java.lang.String getProcedure()
        Returns the HTTP method for the call.
        Returns:
        the HTTP Method called
        Since:
        3.36.0
      • getStatusCode

        public java.lang.Integer getStatusCode()
        Returns the HTTP status code for the call.
        Returns:
        the status code for the call, null if not available
        Since:
        7.5.0
      • getStatusText

        public java.lang.String getStatusText()
        Returns the HTTP reason message for the call.
        Returns:
        the text of the reason message, null if not available
        Since:
        7.5.0
      • getInboundResponseHeaders

        public InboundHeaders getInboundResponseHeaders()
        Returns the headers from the response of the external call.
        Returns:
        the response headers
        Since:
        3.36.0
      • getExtendedInboundResponseHeaders

        public InboundHeaders getExtendedInboundResponseHeaders()
        Returns the headers from the response of the external call.
        Returns:
        the response headers
        Since:
        5.8.0
      • library

        public static HttpParameters.UriParameter library​(java.lang.String library)
        Set the name of the library.
        Parameters:
        library - the name of the library
        Returns:
        the next builder interface