Package com.newrelic.api.agent
Class HttpParameters
- java.lang.Object
-
- com.newrelic.api.agent.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HttpParameters.Build
protected static class
HttpParameters.Builder
static interface
HttpParameters.InboundHeadersParameter
static interface
HttpParameters.ProcedureParameter
static interface
HttpParameters.UriParameter
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpParameters(HttpParameters httpParameters)
protected
HttpParameters(HttpParameters.Builder builder)
protected
HttpParameters(java.lang.String library, java.net.URI uri, java.lang.String procedure, InboundHeaders inboundHeaders)
protected
HttpParameters(java.lang.String library, java.net.URI uri, java.lang.String procedure, InboundHeaders inboundHeaders, ExtendedInboundHeaders extendedInboundHeaders)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InboundHeaders
getExtendedInboundResponseHeaders()
Returns the headers from the response of the external call.InboundHeaders
getInboundResponseHeaders()
Returns the headers from the response of the external call.java.lang.String
getLibrary()
Returns the name of the framework used to make the connection.java.lang.String
getProcedure()
Returns the HTTP method for the call.java.lang.Integer
getStatusCode()
Returns the HTTP status code for the call.java.lang.String
getStatusText()
Returns the HTTP reason message for the call.java.net.URI
getUri()
Returns the URI for the external call.static HttpParameters.UriParameter
library(java.lang.String library)
Set the name of the library.
-
-
-
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)
-
HttpParameters
protected HttpParameters(HttpParameters.Builder builder)
-
-
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
-
-