public class ResourceConverterContext
extends java.lang.Object
ResourceConverterContext
provides context information which are necessary or useful for converting a
resource
.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT
Default page size limit.
|
static boolean |
DEFAULT_SHOW_ALL_PROPERTIES
Default show all properties flag.
|
static boolean |
DEFAULT_USE_ABSOLUTE_URIS
Default indicator if absolute URIs should be used.
|
Constructor and Description |
---|
ResourceConverterContext()
Create a new
ResourceConverterContext . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context.
|
Filter<Resource> |
getFilter()
Returns the filter.
|
int |
getLimit()
Returns the limit.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getModelFilters() |
int |
getOffset()
Returns the offset.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getParameters()
Returns the request parameters.
|
java.lang.String |
getQuery()
Returns the query.
|
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.
|
java.lang.String[] |
getShowProperties()
Retrieves the properties to show.
|
boolean |
isAbsolutURI()
Indicator if absolute URI's are used.
|
boolean |
isShowAllProperties()
Indicator if all properties should be shown.
|
ResourceConverterContext |
setAbsolutURI(boolean useAbsoluteURI)
Sets the property to use absolute URI's.
|
ResourceConverterContext |
setContextPath(java.lang.String contextPath)
Sets the portion of the request URI that indicates the context.
|
ResourceConverterContext |
setFilter(Filter<Resource> filter)
Sets the filter.
|
ResourceConverterContext |
setLimit(int limit)
Sets the limit.
|
void |
setModelFilters(java.util.Map<java.lang.String,java.lang.String[]> filters) |
ResourceConverterContext |
setOffset(int offset)
Set the offset.
|
ResourceConverterContext |
setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Sets the request parameters.
|
ResourceConverterContext |
setQuery(java.lang.String query)
Sets the query.
|
ResourceConverterContext |
setRequestPathInfo(RequestPathInfo requestPathInfo)
Sets the
RequestPathInfo . |
void |
setRootContextPath(java.lang.String rootContextPath)
Set the root context path
|
ResourceConverterContext |
setScheme(java.lang.String scheme)
Sets the name of the scheme.
|
ResourceConverterContext |
setServerName(java.lang.String serverName)
Sets the host name of the server.
|
ResourceConverterContext |
setServerPort(int serverPort)
Sets the port number.
|
ResourceConverterContext |
setShowAllProperties(boolean showAllProperties)
Sets the property to show all properties.
|
ResourceConverterContext |
setShowProperties(java.lang.String[] showProperties)
Sets the properties to show.
|
public static final int DEFAULT_LIMIT
public static final boolean DEFAULT_USE_ABSOLUTE_URIS
public static final boolean DEFAULT_SHOW_ALL_PROPERTIES
public ResourceConverterContext()
ResourceConverterContext
.public java.lang.String getRootContextPath()
public void setRootContextPath(java.lang.String rootContextPath)
rootContextPath
- The root context pathpublic int getOffset()
public ResourceConverterContext setOffset(int offset)
offset
- Offset valuepublic int getLimit()
public ResourceConverterContext setLimit(int limit)
limit
- Limit valuepublic ResourceConverterContext setFilter(Filter<Resource> filter)
filter
- A filterpublic java.lang.String getScheme()
public ResourceConverterContext setScheme(java.lang.String scheme)
scheme
- Scheme namepublic java.lang.String getServerName()
public ResourceConverterContext setServerName(java.lang.String serverName)
serverName
- Server host namepublic int getServerPort()
public ResourceConverterContext setServerPort(int serverPort)
serverPort
- Server portpublic java.lang.String getContextPath()
public ResourceConverterContext setContextPath(java.lang.String contextPath)
contextPath
- Context pathpublic RequestPathInfo getRequestPathInfo()
RequestPathInfo
.public ResourceConverterContext setRequestPathInfo(RequestPathInfo requestPathInfo)
RequestPathInfo
.requestPathInfo
- A RequestPathInfopublic java.util.Map<java.lang.String,java.lang.String[]> getParameters()
Map
of request parameter keys and valuespublic ResourceConverterContext setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
parameters
- Request parameterspublic java.lang.String getQuery()
public ResourceConverterContext setQuery(java.lang.String query)
query
- Query valuepublic boolean isAbsolutURI()
true
if URIs are absolute, false
otherwisepublic ResourceConverterContext setAbsolutURI(boolean useAbsoluteURI)
useAbsoluteURI
- Indicator to use absolute URIspublic boolean isShowAllProperties()
public ResourceConverterContext setShowAllProperties(boolean showAllProperties)
showAllProperties
- Indicator to show all propertiespublic java.lang.String[] getShowProperties()
public ResourceConverterContext setShowProperties(java.lang.String[] showProperties)
showProperties
- Property names to show.public java.util.Map<java.lang.String,java.lang.String[]> getModelFilters()
public void setModelFilters(java.util.Map<java.lang.String,java.lang.String[]> filters)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"