@Path(value="api") public class ApiHandler extends AbstractBaseResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
RESOURCE_NAME
The Constant RESOURCE_NAME.
|
APPLICATION_ATOM_XML, APPLICATION_JSON, APPLICATION_XHTML_XML, APPLICATION_XML, CHANGE_VERB, PARAMETER_ACTION, PARAMETER_ACTION_DESCRIPTION, PARAMETER_CATALOG_ID, PARAMETER_CATALOG_ID_DESCRIPTION, PARAMETER_CURRENCY, PARAMETER_CURRENCY_DESCRIPTION, PARAMETER_FOR_USER, PARAMETER_FOR_USER_DESCRIPTION, PARAMETER_FOR_USER_ID, PARAMETER_FOR_USER_ID_DESCRIPTION, PARAMETER_LANG_ID, PARAMETER_LANG_ID_DESCRIPTION, PARAMETER_LOCALE, PARAMETER_LOCALE_DESCRIPTION, PARAMETER_MODE, PARAMETER_MODE_DESCRIPTION, PARAMETER_PAGE_NUMBER, PARAMETER_PAGE_NUMBER_DESCRIPTION, PARAMETER_PAGE_SIZE, PARAMETER_PAGE_SIZE_DESCRIPTION, PARAMETER_PROFILE_NAME, PARAMETER_PROFILE_NAME_DESCRIPTION, PARAMETER_QUERY, PARAMETER_QUERY_DESCRIPTION, PARAMETER_RESET_PASSWORD_DESCRIPTION, PARAMETER_RESPONSE_FORMAT, PARAMETER_RESPONSE_FORMAT_DESCRIPTION, PARAMETER_STORE_ID, PARAMETER_STORE_ID_DESCRIPTION, PARAMETER_WORKSPACE_IDENTIFIER, PARAMETER_WORKSPACE_IDENTIFIER_DESCRIPTION, PARAMETER_WORKSPACE_NAME, PARAMETER_WORKSPACE_NAME_DESCRIPTION, PARAMETER_WORKSPACE_TASK, PARAMETER_WORKSPACE_TASK_DESCRIPTION, PARAMETER_WORKSPACE_TASKGROUP, PARAMETER_WORKSPACE_TASKGROUP_DESCRIPTION, PROCESS_VERB, RESPONSE_200_DESCRIPTION, RESPONSE_201_DESCRIPTION, RESPONSE_204_DESCRIPTION, RESPONSE_400_DESCRIPTION, RESPONSE_401_DESCRIPTION, RESPONSE_403_DESCRIPTION, RESPONSE_404_DESCRIPTION, RESPONSE_500_DESCRIPTION
Constructor and Description |
---|
ApiHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getAggregatedResourceList(java.lang.String responseFormat)
Fetch list of aggregated available resources.
|
javax.ws.rs.core.Response |
getResourceDescription(java.lang.String resourceName,
java.lang.String responseFormat)
Describe the APIs available on a resource by name.
|
javax.ws.rs.core.Response |
getResourceDescriptionBundle(java.lang.String resourceName)
Generate the default resource bundle for a resource.
|
static java.util.Map<java.lang.String,java.lang.Class> |
getResourceHandlerMap() |
javax.ws.rs.core.Response |
getResourceList(java.lang.String responseFormat)
Fetch list of available resources.
|
java.lang.String |
getResourceName()
This method returns the name of the resource used primarily to determine
the representation of the resource.
|
boolean |
isDiscoveryEnabled()
Is API Discovery enabled.
|
boolean |
isRequestInPreviewMode()
Test if the request is executed in preview mode.
|
static void |
populateResourceHandlerMap(java.lang.String baseConfigLoc)
Populate the resource handler map for a specific servlet context.
|
addError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, getExternalResourceName, getFormattedMessage, getFormattedMessageWithLocale, getFormattingGroupName, getInstrumentor, getIntegerParameterValue, getIntegerParameterValues, getLongParameterValue, getLongParameterValues, getParameterValue, getParameterValue, getParameterValues, getQueryRegistry, getRequest, getResponse, getUriInfo, handleException, initializeActionRegistry, initializeQueryRegistry, performAction, postProcess, preProcess, registerOperationWithMethodSignature, runQuery, staticConvertStreamToString, throwInvalidQueryNameException, throwInvalidQueryNameException, throwRestException, throwRestExceptionIfErrorsAreDetected, validatePageNumberPageSize
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static java.util.Map<java.lang.String,java.lang.Class> getResourceHandlerMap()
public java.lang.String getResourceName()
IResourceHandler
@GET @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response getResourceList(@QueryParam(value="responseFormat") java.lang.String responseFormat)
responseFormat
- the response format@GET @Path(value="aggregated") @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response getAggregatedResourceList(@QueryParam(value="responseFormat") java.lang.String responseFormat)
responseFormat
- the response format@GET @Path(value="resource/{resourceName}") @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response getResourceDescription(@PathParam(value="resourceName") java.lang.String resourceName, @QueryParam(value="responseFormat") java.lang.String responseFormat)
resourceName
- Name of the resource.responseFormat
- the response format@GET @Path(value="bundle/{resourceName}") @Produces(value={"application/json","application/xml"}) public javax.ws.rs.core.Response getResourceDescriptionBundle(@PathParam(value="resourceName") java.lang.String resourceName)
resourceName
- Name of the resource.public boolean isDiscoveryEnabled()
public static void populateResourceHandlerMap(java.lang.String baseConfigLoc)
String
- The base configuration location.public boolean isRequestInPreviewMode()
AbstractBaseResourceHandler
isRequestInPreviewMode
in class AbstractBaseResourceHandler