@ProviderType public interface ConverterContext extends Adaptable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT
Default page size limit.
|
static boolean |
DEFAULT_USE_ABSOLUTE_URIS
Default indicator if absolute URIs should be used.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context.
|
int |
getLimit()
Returns the limit.
|
java.lang.String |
getMatchedMediaType()
Returns the media type that was matched from the request and that the converter is being asked to provide.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getModelFilters()
Retrieves the filters to be applied by the model when getting entities.
|
java.lang.String |
getOffsetValue()
Get this converters current offset value or the offset if that has been set.
|
java.util.List<OrderByDetails> |
getOrderBy()
Get this converters current list of order by information.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getParameters()
Returns the request parameters.
|
java.lang.String |
getQuery()
Returns the query.
|
java.lang.String |
getRequestMethod()
Returns the HTTP method of the request.
|
RequestPathInfo |
getRequestPathInfo()
Returns the
RequestPathInfo . |
java.lang.String |
getRootContextPath()
Get the Root Context Path Value as defined in OSGI config for ApiEndpointResourceProviderFactory
|
java.lang.String |
getScheme()
Returns the name of the scheme.
|
java.lang.String |
getServerName()
Returns the host name of the server.
|
int |
getServerPort()
Returns the port number.
|
boolean |
isAbsoluteURI()
Indicator if absolute URI's are used.
|
void |
setMatchedMediaType(java.lang.String mediaType)
Set the media type that was matched from the request and the converter is being asked to provide.
|
ConverterContext |
setOffsetValue(java.lang.String value)
Set the offset value.
|
static final int DEFAULT_LIMIT
static final boolean DEFAULT_USE_ABSOLUTE_URIS
@CheckForNull java.lang.String getRootContextPath()
int getLimit()
@CheckForNull java.lang.String getScheme()
@CheckForNull java.lang.String getServerName()
int getServerPort()
@CheckForNull java.lang.String getContextPath()
@CheckForNull RequestPathInfo getRequestPathInfo()
RequestPathInfo
.@CheckForNull java.util.Map<java.lang.String,java.lang.String[]> getParameters()
Map
of request parameter keys and values@CheckForNull java.lang.String getQuery()
boolean isAbsoluteURI()
true
if URIs are absolute, false
otherwise@Nonnull java.util.Map<java.lang.String,java.lang.String[]> getModelFilters()
@CheckForNull java.lang.String getMatchedMediaType()
void setMatchedMediaType(java.lang.String mediaType)
mediaType
- The matched media type@CheckForNull java.lang.String getRequestMethod()
ConverterContext setOffsetValue(java.lang.String value)
value
- the value of the url parameterjava.lang.String getOffsetValue()
@CheckForNull java.util.List<OrderByDetails> getOrderBy()
Copyright © 2010 - 2020 Adobe. All Rights Reserved