Class URISupport
- java.lang.Object
-
- com.newrelic.agent.bridge.external.URISupport
-
public class URISupport extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description URISupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetURI(java.lang.String scheme, java.lang.String host, int port, java.lang.String path)static java.lang.StringgetURI(java.net.URI theUri)Gets the uri as a string without any query parameters.static java.lang.StringgetURI(java.net.URL theUrl)Takes in a URL and returns the associated uri minus the query parameters.
-
-
-
Method Detail
-
getURI
public static java.lang.String getURI(java.net.URI theUri)
Gets the uri as a string without any query parameters.- Parameters:
theUri- The uri to convert.- Returns:
- The uri minus the query parameters.
-
getURI
public static java.lang.String getURI(java.net.URL theUrl)
Takes in a URL and returns the associated uri minus the query parameters.- Parameters:
theUrl- The URL to be converted.- Returns:
- The converted URI.
-
getURI
public static java.lang.String getURI(java.lang.String scheme, java.lang.String host, int port, java.lang.String path)
-
-