public class InstrumentUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getURI(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path)
Build the uri.
|
static java.lang.String |
getURI(java.net.URI theUri)
Gets the uri as a string without any query parameters.
|
static java.lang.String |
getURI(java.net.URL theUrl)
Takes in a URL and returns the associated uri minus the query parameters.
|
static void |
setFinal(java.lang.Object context,
java.lang.reflect.Field field,
java.lang.Object newValue)
Set a final value and reset the accessibility
|
public static java.lang.String getURI(java.net.URI theUri)
theUri - The uri to convert.public static java.lang.String getURI(java.net.URL theUrl)
theUrl - The URL to be converted.public static java.lang.String getURI(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path)
public static void setFinal(java.lang.Object context,
java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.SecurityException,
java.lang.NoSuchFieldException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
context - field - newValue - java.lang.SecurityExceptionjava.lang.NoSuchFieldExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessException