public class ProviderUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CHILD_RESOURCE |
static String |
KEY_CHILD_RESOURCES |
static String |
KEY_COMMAND |
static String |
KEY_COMMANDS |
static String |
KEY_ENTITY |
static String |
KEY_METHODS |
| Constructor and Description |
|---|
ProviderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getElementLink(javax.ws.rs.core.UriInfo uriInfo,
String elementName) |
protected static String |
getEndXmlElement(String name) |
protected static String |
getHint(javax.ws.rs.core.UriInfo uriInfo,
String mediaType)
Method to get the hint to display in case module monitoring levels are OFF
|
protected static String |
getHtmlForComponent(String component,
String heading,
String result) |
static String |
getHtmlHeader(String baseUri) |
protected static String |
getHtmlRepresentationForAttributes(org.jvnet.hk2.config.ConfigBean proxy,
javax.ws.rs.core.UriInfo uriInfo) |
protected static String |
getHtmlRespresentationsForCommand(MethodMetaData methodMetaData,
String commandMethod,
String commandDisplayName,
javax.ws.rs.core.UriInfo uriInfo) |
protected static org.codehaus.jettison.json.JSONArray |
getJsonForMethodMetaData(OptionsResult metaData) |
protected static String |
getJsonForMethodMetaData(OptionsResult metaData,
String indent) |
protected static String |
getStartXmlElement(String name) |
static Map<String,Object> |
getStatistic(org.glassfish.external.statistics.Statistic statistic) |
static Map |
getStatistics(org.glassfish.external.statistics.Statistic statistic) |
static HashMap<String,String> |
getStringMap(Map<String,Object> map) |
protected static String |
getXmlForMethodMetaData(OptionsResult metaData,
String indent) |
static String |
jsonValue(Object value) |
static String |
quote(String string)
Produce a string in double quotes with backslash sequences in all the
right places.
|
protected static String |
readAsString(InputStream in) |
protected static String |
slashToDash(String string) |
public static final String KEY_CHILD_RESOURCE
public static final String KEY_CHILD_RESOURCES
public static final String KEY_COMMAND
public static final String KEY_COMMANDS
public static final String KEY_ENTITY
public static final String KEY_METHODS
public static String quote(String string)
protected static String readAsString(InputStream in) throws IOException
IOExceptionpublic static String getElementLink(javax.ws.rs.core.UriInfo uriInfo, String elementName)
public static Map getStatistics(org.glassfish.external.statistics.Statistic statistic) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public static Map<String,Object> getStatistic(org.glassfish.external.statistics.Statistic statistic)
protected static String getHtmlRepresentationForAttributes(org.jvnet.hk2.config.ConfigBean proxy, javax.ws.rs.core.UriInfo uriInfo)
protected static String getHtmlRespresentationsForCommand(MethodMetaData methodMetaData, String commandMethod, String commandDisplayName, javax.ws.rs.core.UriInfo uriInfo)
protected static String getHtmlForComponent(String component, String heading, String result)
protected static String getHint(javax.ws.rs.core.UriInfo uriInfo, String mediaType)
uriInfo - the uri context object of the input requestmediaType - the media type of the input requestprotected static org.codehaus.jettison.json.JSONArray getJsonForMethodMetaData(OptionsResult metaData) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected static String getJsonForMethodMetaData(OptionsResult metaData, String indent)
protected static String getXmlForMethodMetaData(OptionsResult metaData, String indent)
Copyright © 2017. All rights reserved.