The configuration for mapping an entity to an endpoint
Fields inherited from class | Fields |
---|---|
class org.grails.datastore.mapping.config.Entity |
ALL_DATA_SOURCES, DEFAULT_DATA_SOURCE, __$stMC |
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 | Name and description |
---|---|
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 |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.mapping.config.Entity |
org.grails.datastore.mapping.config.Entity#getVersion(), org.grails.datastore.mapping.config.Entity#setVersion(boolean), org.grails.datastore.mapping.config.Entity#datasource(java.lang.String), org.grails.datastore.mapping.config.Entity#connections([Ljava.lang.String;), org.grails.datastore.mapping.config.Entity#getStateless(), org.grails.datastore.mapping.config.Entity#isStateless(), org.grails.datastore.mapping.config.Entity#setStateless(boolean), org.grails.datastore.mapping.config.Entity#getAutoTimestamp(), org.grails.datastore.mapping.config.Entity#isAutoTimestamp(), org.grails.datastore.mapping.config.Entity#setAutoTimestamp(boolean), org.grails.datastore.mapping.config.Entity#getAutowire(), org.grails.datastore.mapping.config.Entity#isAutowire(), org.grails.datastore.mapping.config.Entity#setAutowire(boolean), org.grails.datastore.mapping.config.Entity#getDefaultSort(), org.grails.datastore.mapping.config.Entity#setDefaultSort(java.lang.Object), org.grails.datastore.mapping.config.Entity#isVersion(), org.grails.datastore.mapping.config.Entity#getDatasources(), org.grails.datastore.mapping.config.Entity#setDatasources(java.util.List), org.grails.datastore.mapping.config.Entity#stateless(boolean), org.grails.datastore.mapping.config.Entity#autoTimestamp(boolean), org.grails.datastore.mapping.config.Entity#getMetaClass(), org.grails.datastore.mapping.config.Entity#setMetaClass(groovy.lang.MetaClass), org.grails.datastore.mapping.config.Entity#invokeMethod(java.lang.String, java.lang.Object), org.grails.datastore.mapping.config.Entity#connection(java.lang.String), org.grails.datastore.mapping.config.Entity#autowire(boolean), org.grails.datastore.mapping.config.Entity#getSort(), org.grails.datastore.mapping.config.Entity#setSort(java.lang.Object), org.grails.datastore.mapping.config.Entity#isVersioned(), org.grails.datastore.mapping.config.Entity#defaultSort(java.lang.Object), org.grails.datastore.mapping.config.Entity#datasources(java.util.List), org.grails.datastore.mapping.config.Entity#setProperty(java.lang.String, java.lang.Object), org.grails.datastore.mapping.config.Entity#getProperty(java.lang.String), org.grails.datastore.mapping.config.Entity#version(boolean), org.grails.datastore.mapping.config.Entity#wait(long, int), org.grails.datastore.mapping.config.Entity#wait(long), org.grails.datastore.mapping.config.Entity#wait(), org.grails.datastore.mapping.config.Entity#equals(java.lang.Object), org.grails.datastore.mapping.config.Entity#toString(), org.grails.datastore.mapping.config.Entity#hashCode(), org.grails.datastore.mapping.config.Entity#getClass(), org.grails.datastore.mapping.config.Entity#notify(), org.grails.datastore.mapping.config.Entity#notifyAll() |
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
interceptorClasses
- The interceptor classes to setSets a URI template
uri
- The URI template