Package com.newrelic.api.agent
Class GenericParameters
- java.lang.Object
-
- com.newrelic.api.agent.GenericParameters
-
- All Implemented Interfaces:
ExternalParameters
public class GenericParameters extends java.lang.Object implements ExternalParameters
Parameters required to report a basic external call usingTracedMethod
's reportAsExternal. A fluent builder is provided to allow for easy usage and management of this API.- Since:
- 3.36.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GenericParameters.Build
protected static class
GenericParameters.Builder
static interface
GenericParameters.ProcedureParameter
static interface
GenericParameters.UriParameter
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericParameters(GenericParameters genericParameters)
protected
GenericParameters(java.lang.String library, java.net.URI uri, java.lang.String procedure)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLibrary()
Returns the name of the framework used to make the connection.java.lang.String
getProcedure()
Returns the HTTP method or Java method for the call.java.net.URI
getUri()
Returns the URI for the external call.static GenericParameters.UriParameter
library(java.lang.String library)
Set the name of the library.
-
-
-
Constructor Detail
-
GenericParameters
protected GenericParameters(java.lang.String library, java.net.URI uri, java.lang.String procedure)
-
GenericParameters
protected GenericParameters(GenericParameters genericParameters)
-
-
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 or Java method for the call.- Returns:
- the HTTP Method or Java method called.
- Since:
- 3.36.0
-
library
public static GenericParameters.UriParameter library(java.lang.String library)
Set the name of the library.- Parameters:
library
- the name of the library- Returns:
- the next builder interface
-
-