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 interfaceGenericParameters.Buildprotected static classGenericParameters.Builderstatic interfaceGenericParameters.ProcedureParameterstatic interfaceGenericParameters.UriParameter
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericParameters(GenericParameters genericParameters)protectedGenericParameters(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.StringgetLibrary()Returns the name of the framework used to make the connection.java.lang.StringgetProcedure()Returns the HTTP method or Java method for the call.java.net.URIgetUri()Returns the URI for the external call.static GenericParameters.UriParameterlibrary(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
-
-