Package com.newrelic.api.agent
Class HttpParameters.Builder
- java.lang.Object
-
- com.newrelic.api.agent.HttpParameters.Builder
-
- All Implemented Interfaces:
HttpParameters.Build,HttpParameters.InboundHeadersParameter,HttpParameters.ProcedureParameter,HttpParameters.UriParameter
- Enclosing class:
- HttpParameters
protected static class HttpParameters.Builder extends java.lang.Object implements HttpParameters.UriParameter, HttpParameters.ProcedureParameter, HttpParameters.InboundHeadersParameter, HttpParameters.Build
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpParametersbuild()Build the finalHttpParametersfor the API call.HttpParameters.BuildextendedInboundHeaders(ExtendedInboundHeaders extendedInboundHeaders)Set the inbound headers on the HTTP call.HttpParameters.BuildinboundHeaders(InboundHeaders inboundHeaders)Set the inbound headers on the HTTP call.HttpParameters.BuildnoInboundHeaders()No inbound headers.HttpParameters.InboundHeadersParameterprocedure(java.lang.String procedure)Set the HTTP method for the call.HttpParameters.Buildstatus(java.lang.Integer statusCode, java.lang.String statusText)Set the status code/text of the HTTP response.HttpParameters.ProcedureParameteruri(java.net.URI uri)Set the URI of the external call.
-
-
-
Method Detail
-
uri
public HttpParameters.ProcedureParameter uri(java.net.URI uri)
Description copied from interface:HttpParameters.UriParameterSet the URI of the external call.- Specified by:
uriin interfaceHttpParameters.UriParameter- Parameters:
uri- the URI of the external call- Returns:
- the next builder interface
-
procedure
public HttpParameters.InboundHeadersParameter procedure(java.lang.String procedure)
Description copied from interface:HttpParameters.ProcedureParameterSet the HTTP method for the call.- Specified by:
procedurein interfaceHttpParameters.ProcedureParameter- Parameters:
procedure- the HTTP method for the call- Returns:
- the next builder interface
-
inboundHeaders
public HttpParameters.Build inboundHeaders(InboundHeaders inboundHeaders)
Description copied from interface:HttpParameters.InboundHeadersParameterSet the inbound headers on the HTTP call.- Specified by:
inboundHeadersin interfaceHttpParameters.InboundHeadersParameter- Parameters:
inboundHeaders- the inbound headers for the HTTP call- Returns:
- the completed HttpParameters object
-
extendedInboundHeaders
public HttpParameters.Build extendedInboundHeaders(ExtendedInboundHeaders extendedInboundHeaders)
Description copied from interface:HttpParameters.InboundHeadersParameterSet the inbound headers on the HTTP call.- Specified by:
extendedInboundHeadersin interfaceHttpParameters.InboundHeadersParameter- Parameters:
extendedInboundHeaders- the inbound headers for the HTTP call- Returns:
- the completed HttpParameters object
-
noInboundHeaders
public HttpParameters.Build noInboundHeaders()
Description copied from interface:HttpParameters.InboundHeadersParameterNo inbound headers.- Specified by:
noInboundHeadersin interfaceHttpParameters.InboundHeadersParameter- Returns:
- the completed HttpParameters object
-
status
public HttpParameters.Build status(java.lang.Integer statusCode, java.lang.String statusText)
Description copied from interface:HttpParameters.BuildSet the status code/text of the HTTP response.- Specified by:
statusin interfaceHttpParameters.Build- Returns:
- the builder in a buildable state.
-
build
public HttpParameters build()
Description copied from interface:HttpParameters.BuildBuild the finalHttpParametersfor the API call.- Specified by:
buildin interfaceHttpParameters.Build- Returns:
- the completed GenericParameters object
-
-