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.
|
Constructor and Description |
---|
ApiHandler() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.json.JSONObject | createResourceList()
Create a resource list.
|
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.
|
protected boolean | isLocaleSupportedByStore(java.lang.String storeId, java.lang.String localeName)
Test if a locale is supported by a store.
|
boolean | isRequestInPreviewMode()
Test if the request is executed in preview mode.
|
protected static boolean | readIsApiDiscoveryEnabledFromConfiguration()
Read the "Is authentication allowed using cookies" configuration flag.
|
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()
public javax.ws.rs.core.Response getResourceList(java.lang.String responseFormat)
public javax.ws.rs.core.Response getAggregatedResourceList(java.lang.String responseFormat)
public javax.ws.rs.core.Response getResourceDescription(java.lang.String resourceName, java.lang.String responseFormat)
public javax.ws.rs.core.Response getResourceDescriptionBundle(java.lang.String resourceName)
public boolean isDiscoveryEnabled()
protected org.apache.commons.json.JSONObject createResourceList() throws org.apache.commons.json.JSONException
public boolean isRequestInPreviewMode()
protected boolean isLocaleSupportedByStore(java.lang.String storeId, java.lang.String localeName) throws java.lang.Exception
protected static final boolean readIsApiDiscoveryEnabledFromConfiguration()