The configuration for mapping an entity to an endpoint
Fields inherited from class | Fields |
---|---|
class Entity |
ALL_DATA_SOURCES, DEFAULT_DATA_SOURCE, propertyConfigs |
Type | Name and description |
---|---|
java.nio.charset.Charset |
charset The default chartset to use |
MediaType |
contentType The content type returned by the server |
RequestInterceptor[] |
interceptors Any request interceptors |
com.damnhandy.uri.template.UriTemplate |
uriTemplate The URI to the endpoint |
Type Params | Return Type | Name and description |
---|---|---|
|
Endpoint |
contentType(java.lang.CharSequence contentType) @param contentType The content type |
|
Endpoint |
contentType(MediaType mediaType) @param mediaType The content type |
|
Entity |
id(groovy.lang.Closure identityConfig) |
|
protected Attribute |
newProperty() |
|
Entity |
property(java.lang.String name, groovy.lang.Closure propertyConfig) |
|
Attribute |
property(groovy.lang.Closure propertyConfig) |
|
void |
setContentType(java.lang.CharSequence contentType) @param contentType The content type |
|
void |
setInterceptors(java.lang.Class<RequestInterceptor>... interceptorClasses) @param interceptorClasses The interceptor classes to set |
|
void |
setUri(java.lang.CharSequence uri) Sets a URI template |
|
Endpoint |
uri(java.lang.CharSequence uri) Sets a URI template |
|
Entity |
version(groovy.lang.Closure versionConfig) |
Methods inherited from class | Name |
---|---|
class Entity |
cloneGlobalConstraint, configureExisting, connection, connections, connections, datasource, getOrInitializePropertyConfig, getPropertyConfig, getPropertyConfigs, getSort, id, id, isVersioned, methodMissing, newProperty, property, property, property, property, propertyMissing, setSort, tenantId, version, version |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The default chartset to use
The content type returned by the server
Any request interceptors
The URI to the endpoint
contentType
- The content type
contentType
- The content type
interceptorClasses
- The interceptor classes to setSets a URI template
uri
- The URI templateSets a URI template
uri
- The URI template