Package | Description |
---|---|
org.restsql.core |
Contains core framework interfaces, an API for deployments that use
restSQL as a library, rather than an HTTP service.
|
org.restsql.security |
Contains classes that provide security, such as authorization.
|
Modifier and Type | Method and Description |
---|---|
static Request.Type |
Request.Type.fromHttpMethod(String method) |
Request.Type |
Request.getType()
Returns request type.
|
static Request.Type |
Request.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Request.Type[] |
Request.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
WriteResponse |
RequestDeserializer.execWrite(HttpRequestAttributes httpAttributes,
Request.Type requestType,
List<RequestValue> resIds,
SqlResource sqlResource,
String requestBody,
RequestLogger requestLogger)
Executes write request.
|
static Request |
Factory.getRequest(HttpRequestAttributes httpAttributes,
Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger)
Returns request object with pre-parsed data from the URI.
|
Request |
Factory.RequestFactory.getRequest(HttpRequestAttributes httpAttributes,
Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger) |
static Request |
Factory.getRequest(Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger)
Returns request object with pre-parsed data from the URI.
|
List<TableMetaData> |
SqlResourceMetaData.getWriteTables(Request.Type requestType,
boolean doParent) |
Modifier and Type | Method and Description |
---|---|
boolean |
SqlResourceRolePrivileges.Privilege.equals(Request.Type requestType) |
boolean |
SqlResourceRolePrivileges.hasPrivilege(Request.Type requestType) |
boolean |
Authorizer.isAuthorized(SecurityContext context,
Request.Type requestType,
String sqlResource)
Checks if user is assigned a role that may perform the request.
|
Copyright © 2011-2018 restSQL Project Contributors