public class RequestFactoryImpl extends Object implements Factory.RequestFactory
Constructor and Description |
---|
RequestFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Request |
getChildRequest(Request parentRequest) |
Request |
getRequest(HttpRequestAttributes httpAttributes)
Builds request from URI.
|
Request |
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.
|
public Request getChildRequest(Request parentRequest)
getChildRequest
in interface Factory.RequestFactory
public Request getRequest(HttpRequestAttributes httpAttributes) throws InvalidRequestException, Factory.SqlResourceFactoryException, SqlResourceException
res/{resourceName}/{resId1}/{resId2}?{param1}={value1}&{param2}={value2}
. Used by the test harness,
Java API clients and perhaps a straight servlet implementation.getRequest
in interface Factory.RequestFactory
InvalidRequestException
Factory.SqlResourceFactoryException
SqlResourceException
public Request getRequest(HttpRequestAttributes httpAttributes, Request.Type type, String sqlResource, List<RequestValue> resIds, List<RequestValue> params, List<List<RequestValue>> childrenParams, RequestLogger requestLogger) throws InvalidRequestException
getRequest
in interface Factory.RequestFactory
InvalidRequestException
Copyright © 2011-2018 restSQL Project Contributors