- java.lang.Object
-
- com.gluonhq.connect.provider.BaseRestProvider
-
- Direct Known Subclasses:
RestListDataReader
,RestObjectDataReader
public class BaseRestProvider extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CONTENT_TYPE_APPLICATION_JSON
protected static String
CONTENT_TYPE_TEXT_PLAIN
protected RestDataSource
dataSource
-
Constructor Summary
Constructors Constructor Description BaseRestProvider(RestDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestDataSource
getRestDataSource()
Returns the rest data source that is used as the input and output data source.
-
-
-
Field Detail
-
CONTENT_TYPE_APPLICATION_JSON
protected static final String CONTENT_TYPE_APPLICATION_JSON
- See Also:
- Constant Field Values
-
CONTENT_TYPE_TEXT_PLAIN
protected static final String CONTENT_TYPE_TEXT_PLAIN
- See Also:
- Constant Field Values
-
dataSource
protected final RestDataSource dataSource
-
-
Constructor Detail
-
BaseRestProvider
public BaseRestProvider(RestDataSource dataSource)
-
-
Method Detail
-
getRestDataSource
public RestDataSource getRestDataSource()
Returns the rest data source that is used as the input and output data source.- Returns:
- the rest data source being used as the input and output data source
-
-