c

content-negotiation

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'.
http://www.mattunderscore.com/ws-utils/content-negotiation/
New BSD License
Matthew Champion
文件下载
文件名 操作
content-negotiation-0.2.8.jar 下载
content-negotiation-0.2.8.pom 下载
content-negotiation-0.2.8-sources.jar 下载
Apache Maven
<dependency>
  <groupId>com.mattunderscore</groupId>
  <artifactId>content-negotiation</artifactId>
  <version>0.2.8</version>
</dependency>
Gradle Groovy
implementation 'com.mattunderscore:content-negotiation:0.2.8'
Gradle Kotlin
implementation("com.mattunderscore:content-negotiation:0.2.8")
Scala SBT
libraryDependencies += "com.mattunderscore" % "content-negotiation" % "0.2.8"
Groovy Grape
@Grapes(
  @Grab(group='com.mattunderscore', module='content-negotiation', version='0.2.8')
)
Apache Ivy
<dependency org="com.mattunderscore" name="content-negotiation" rev="0.2.8" />
Leiningen
[com.mattunderscore/content-negotiation "0.2.8"]
Apache Buildr
'com.mattunderscore:content-negotiation:jar:0.2.8'