...
Property Name | Description | Default Value | Reference |
---|---|---|---|
wink.http.uri | URI that is used by the Link Builders in case of HTTP | Use the URI from the request | Chapter TBD |
wink.https.uri | URI used by the Link Builders in case of HTTPS | Use the URI from the request | Chapter TBD |
wink.context.uri | Context path used by the Link Builders | Use the context path from the request | Chapter TBD |
wink.defaultUrisRelative | Indicates if URIs generated by the Link Builders are absolute or relative, valid values: true or false | true - links are relative | Chapter TBD |
wink.addAltParam | Indicates if the "alt" query parameter should be added to URIs generated by the Link Builders. Valid values are: true, false | true - add the alt query parameter | Chapter TBD |
wink.searchPolicyContinuedSearch | Indicates if continues search is enabled. Valid values: true, false | true - continued search is enabled | Chapter TBD |
wink.rootResource | ndicates Indicates if a root resource with Service Document generation capabilities should be added. | atom+html --atom and html Service Document generation capabilities | Chapter TBD |
wink.serviceDocumentCssPath | Defines path to a css file that is used in the html Service Document generation. Relevant only if html Service Document is defined | No css file defined | Chapter TBD |
wink.handlersFactoryClass | Defines a org.apache.wink.server.handlers.HandlersFactory class that defines user handlers | No user handelrs defined | Chapter TBD |
Custom Properties File Definition
...
Apache Wink provides a set of predefined Media-Type mappings for use in such cases by supplying the MediaTypeMapper class. Applications may extend or override the MediaTypeMapper class to define additional mappings.
Predefined Mapping Table
...
User Agent
...
Content Type
...
Map To
...
Mozilla/
...
application/atom+xml text/xml
...
text/xml
...
Mozilla/
...
application/atomsvc+xml text/xml
...
text/xml
...
...
pplication/opensearchdescription+xml
...
text/xml
Customizing Mappings
In order to customize these mappings the application should create a instance of a org.apache.wink.server.internalhandlers.MediaTypeMapper MediaTypeMapperFactory class and set it on the DeploymentConfiguration instancein a customized Wink properties file.
Info | ||
---|---|---|
| ||
Refer to section 2 Apache Wink Building Blocks 5.1 Registration and Configuration for more information on Customizing the Default Deployment Properties Configuration. |
Alternative Shortcuts
...