org.jboss.resteasy.core.request
Class ServerDrivenNegotiation

java.lang.Object
  extended by org.jboss.resteasy.core.request.ServerDrivenNegotiation

public class ServerDrivenNegotiation
extends java.lang.Object

Variant selection.

Author:
Pascal S. de Kloe
See Also:
"RFC 2296"

Constructor Summary
ServerDrivenNegotiation()
           
 
Method Summary
 Variant getBestMatch(java.util.List<Variant> available)
           
 void setAcceptCharsetHeaders(java.util.List<java.lang.String> headerValues)
           
 void setAcceptEncodingHeaders(java.util.List<java.lang.String> headerValues)
           
 void setAcceptHeaders(java.util.List<java.lang.String> headerValues)
           
 void setAcceptLanguageHeaders(java.util.List<java.lang.String> headerValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerDrivenNegotiation

public ServerDrivenNegotiation()
Method Detail

setAcceptHeaders

public void setAcceptHeaders(java.util.List<java.lang.String> headerValues)

setAcceptCharsetHeaders

public void setAcceptCharsetHeaders(java.util.List<java.lang.String> headerValues)

setAcceptEncodingHeaders

public void setAcceptEncodingHeaders(java.util.List<java.lang.String> headerValues)

setAcceptLanguageHeaders

public void setAcceptLanguageHeaders(java.util.List<java.lang.String> headerValues)

getBestMatch

public Variant getBestMatch(java.util.List<Variant> available)


Copyright © 2010. All Rights Reserved.