@Component(value="cuba_RestServicesConfiguration")
public class RestServicesConfiguration
extends java.lang.Object
cuba.rest.servicesConfig
application property.
Configuration file must define method name and method argument names that will be user for method invocation by the REST API.
Method parameter types can be omitted if the service doesn't contain an overloaded method with the same parameters number. Otherwise, types must be defined.
Modifier and Type | Class and Description |
---|---|
static class |
RestServicesConfiguration.RestMethodInfo |
static class |
RestServicesConfiguration.RestMethodParamInfo |
static class |
RestServicesConfiguration.RestServiceInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUBA_REST_SERVICES_CONFIG_PROP_NAME |
Constructor and Description |
---|
RestServicesConfiguration() |
Modifier and Type | Method and Description |
---|---|
RestServicesConfiguration.RestMethodInfo |
getRestMethodInfo(java.lang.String serviceName,
java.lang.String methodName,
java.util.List<java.lang.String> methodParamNames) |
RestServicesConfiguration.RestServiceInfo |
getServiceInfo(java.lang.String serviceName) |
java.util.Collection<RestServicesConfiguration.RestServiceInfo> |
getServiceInfos() |
java.lang.reflect.Method |
getServiceMethod(java.lang.String serviceName,
java.lang.String methodName,
java.util.List<java.lang.String> methodParamNames)
Deprecated.
the method will be removed in one of next releases. Use
getRestMethodInfo(String, String,
List) instead |
public static final java.lang.String CUBA_REST_SERVICES_CONFIG_PROP_NAME
@Nullable @Deprecated public java.lang.reflect.Method getServiceMethod(java.lang.String serviceName, java.lang.String methodName, java.util.List<java.lang.String> methodParamNames)
getRestMethodInfo(String, String,
List)
instead@Nullable public RestServicesConfiguration.RestMethodInfo getRestMethodInfo(java.lang.String serviceName, java.lang.String methodName, java.util.List<java.lang.String> methodParamNames)
public java.util.Collection<RestServicesConfiguration.RestServiceInfo> getServiceInfos()
@Nullable public RestServicesConfiguration.RestServiceInfo getServiceInfo(java.lang.String serviceName)