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 HttpParameters
build()
Build the finalHttpParameters
for the API call.HttpParameters.Build
extendedInboundHeaders(ExtendedInboundHeaders extendedInboundHeaders)
Set the inbound headers on the HTTP call.HttpParameters.Build
inboundHeaders(InboundHeaders inboundHeaders)
Set the inbound headers on the HTTP call.HttpParameters.Build
noInboundHeaders()
No inbound headers.HttpParameters.InboundHeadersParameter
procedure(java.lang.String procedure)
Set the HTTP method for the call.HttpParameters.Build
status(java.lang.Integer statusCode, java.lang.String statusText)
Set the status code/text of the HTTP response.HttpParameters.ProcedureParameter
uri(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.UriParameter
Set the URI of the external call.- Specified by:
uri
in 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.ProcedureParameter
Set the HTTP method for the call.- Specified by:
procedure
in 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.InboundHeadersParameter
Set the inbound headers on the HTTP call.- Specified by:
inboundHeaders
in 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.InboundHeadersParameter
Set the inbound headers on the HTTP call.- Specified by:
extendedInboundHeaders
in 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.InboundHeadersParameter
No inbound headers.- Specified by:
noInboundHeaders
in 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.Build
Set the status code/text of the HTTP response.- Specified by:
status
in interfaceHttpParameters.Build
- Returns:
- the builder in a buildable state.
-
build
public HttpParameters build()
Description copied from interface:HttpParameters.Build
Build the finalHttpParameters
for the API call.- Specified by:
build
in interfaceHttpParameters.Build
- Returns:
- the completed GenericParameters object
-
-