Last Version

Content Negotiation Filter 0.2.8

This Content Negotiation Filter provides a content negotiation filter for Java EE servlet containers. The content negotiation algorithm is based on the Apache negotiation algorithm but lacks support for the encoding and character set. The variants can be configured through an XML file, negotiation.xml, in the WEB-INF/classes directory. This file can be overriden with the 'xmlInputFile' filter parameter. This XML file is parsed with the class 'com.mattunderscore.filter.contentnegotiation.variantsource.FilterVariantXMLSource'. This class can be overridden with the 'variantSource' filter parameter. The XML parser is implemented as a SAX parser. The SAX handler class can be overridden by the saxHandlerClass filter parameter. The 'variantSource' parameter can take any class that implements the 'com.mattunderscore.filter.contentnegotiation.variantsource.VariantSource'.

License

License

GroupId

GroupId

com.mattunderscore
ArtifactId

ArtifactId

content-negotiation
Version

Version

0.2.8
Type

Type

jar
Description

Description

Content Negotiation Filter
This Content Negotiation Filter provides a content negotiation filter for Java EE servlet containers. The content negotiation algorithm is based on the Apache negotiation algorithm but lacks support for the encoding and character set. The variants can be configured through an XML file, negotiation.xml, in the WEB-INF/classes directory. This file can be overriden with the 'xmlInputFile' filter parameter. This XML file is parsed with the class 'com.mattunderscore.filter.contentnegotiation.variantsource.FilterVariantXMLSource'. This class can be overridden with the 'variantSource' filter parameter. The XML parser is implemented as a SAX parser. The SAX handler class can be overridden by the saxHandlerClass filter parameter. The 'variantSource' parameter can take any class that implements the 'com.mattunderscore.filter.contentnegotiation.variantsource.VariantSource'.

Download content-negotiation 0.2.8


<!-- https://jarcasting.com/artifacts/com.mattunderscore/content-negotiation/ -->
<dependency>
    <groupId>com.mattunderscore</groupId>
    <artifactId>content-negotiation</artifactId>
    <version>0.2.8</version>
</dependency>
// https://jarcasting.com/artifacts/com.mattunderscore/content-negotiation/
implementation 'com.mattunderscore:content-negotiation:0.2.8'
// https://jarcasting.com/artifacts/com.mattunderscore/content-negotiation/
implementation ("com.mattunderscore:content-negotiation:0.2.8")
'com.mattunderscore:content-negotiation:jar:0.2.8'
<dependency org="com.mattunderscore" name="content-negotiation" rev="0.2.8">
  <artifact name="content-negotiation" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mattunderscore', module='content-negotiation', version='0.2.8')
)
libraryDependencies += "com.mattunderscore" % "content-negotiation" % "0.2.8"
[com.mattunderscore/content-negotiation "0.2.8"]

Dependencies

compile (4)

Group / Artifact Type Version
com.mattunderscore : filter-utils jar 0.2.8
com.mattunderscore : shh-encoding jar 0.2.8
com.mattunderscore : shh-language jar 0.2.8
com.mattunderscore : shh-content-type jar 0.2.8

provided (1)

Group / Artifact Type Version
javax.servlet : servlet-api jar 2.4

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.