public abstract class RequestTransformer
extends java.lang.Object
DataSource.transformRequest(DSRequest)
when
instantiating a DataSource on the client. However when obtaining a DataSource instance from the server using DataSource.getDataSource(java.lang.String)
, transformRequest(DSRequest)
and #transformResponse(DSResponse, DSRequest, Object)
cannot be overridden and so the requestTransformer parameter can be passed to DataSource.getDataSource(java.lang.String)
instead.Constructor and Description |
---|
RequestTransformer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultTransformRequest(DSRequest dsRequest)
Return the result of the default transformed request.
|
protected abstract java.lang.Object |
transformRequest(DSRequest dsRequest)
See the docs for
DataSource.transformRequest(DSRequest) . |
protected abstract java.lang.Object transformRequest(DSRequest dsRequest)
DataSource.transformRequest(DSRequest)
.dsRequest
- the DSRequest being processedpublic java.lang.Object getDefaultTransformRequest(DSRequest dsRequest)
dsRequest
- the request