Modifier and Type | Method and Description |
---|---|
MetadataService |
Application.getMetadataService()
Returns the metadata service.
|
Modifier and Type | Method and Description |
---|---|
void |
Application.setMetadataService(MetadataService metadataService)
Sets the metadata service.
|
Modifier and Type | Method and Description |
---|---|
MetadataService |
RestletHelper.getMetadataService()
Returns the metadata service.
|
Modifier and Type | Method and Description |
---|---|
MetadataService |
TunnelFilter.getMetadataService()
Returns the metadata service of the parent application.
|
Constructor and Description |
---|
Conneg(Request request,
MetadataService metadataService)
Constructor.
|
FlexibleConneg(Request request,
MetadataService metadataService)
Constructor.
|
StrictConneg(Request request,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MetadataService |
Entity.getMetadataService()
Returns the metadata service to use.
|
Modifier and Type | Method and Description |
---|---|
static String |
Entity.getBaseName(String name,
MetadataService metadataService)
Return the base name that is to say the longest part of a given name
without known extensions (beginning from the left).
|
static Collection<String> |
Entity.getExtensions(String name,
MetadataService metadataService)
Returns the list of known extensions taken from a given entity name.
|
static Collection<String> |
Entity.getExtensions(Variant variant,
MetadataService metadataService)
Returns the list of known extensions taken from a given variant.
|
protected void |
ZipClientHelper.handleGet(Request request,
Response response,
File file,
String entryName,
MetadataService metadataService)
Handles a GET call.
|
static void |
Entity.updateMetadata(String entryName,
Variant variant,
boolean applyDefault,
MetadataService metadataService)
Updates some variant metadata based on a given entry name with
extensions.
|
Constructor and Description |
---|
Entity(MetadataService metadataService)
Constructor.
|
FileEntity(File file,
MetadataService metadataService)
Constructor.
|
ZipEntryEntity(ZipFile zipFile,
String entryName,
MetadataService metadataService)
Constructor.
|
ZipEntryEntity(ZipFile zipFile,
ZipEntry entry,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MethodAnnotationInfo |
AnnotationUtils.getMethodAnnotation(List<AnnotationInfo> annotations,
Method restletMethod,
Form query,
Representation entity,
MetadataService metadataService,
ConverterService converterService)
Returns the first annotation descriptor matching the given Restlet
method.
|
List<Variant> |
MethodAnnotationInfo.getRequestVariants(MetadataService metadataService,
ConverterService converterService)
Returns a list of request variants based on the annotation value.
|
List<Variant> |
MethodAnnotationInfo.getResponseVariants(MetadataService metadataService,
ConverterService converterService)
Returns a list of response variants based on the annotation value.
|
boolean |
MethodAnnotationInfo.isCompatible(Method restletMethod,
Form queryParams,
Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the annotated method described is compatible with the given
parameters.
|
boolean |
MethodAnnotationInfo.isCompatibleRequestEntity(Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the given request entity is compatible with the annotated
method described.
|
Constructor and Description |
---|
ServletWarEntity(javax.servlet.ServletContext servletContext,
String path,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MetadataService |
Resource.getMetadataService()
Returns the application's metadata service or create a new one.
|
Modifier and Type | Method and Description |
---|---|
MetadataService |
StatusService.getMetadataService()
Returns the service used to select the preferred variant.
|
Modifier and Type | Method and Description |
---|---|
Variant |
ConnegService.getPreferredVariant(List<? extends Variant> variants,
Request request,
MetadataService metadataService)
Returns the best variant representation for a given resource according
the the client preferences.
A default language is provided in case the variants don't match the client preferences. |
void |
StatusService.setMetadataService(MetadataService metadataService)
Sets the service used to select the preferred variant.
|
Constructor and Description |
---|
StatusService(boolean enabled,
ConverterService converterService,
MetadataService metadataService,
ConnegService connegService)
Constructor.
|
Copyright © 2005–2016. All rights reserved.