com.jayway.restassured.config
Class DecoderConfig

java.lang.Object
  extended by com.jayway.restassured.config.DecoderConfig

public class DecoderConfig
extends Object

Allows you to specify configuration for the decoder.


Constructor Summary
DecoderConfig()
          Configure the decoder config to use "ISO-8859-1" for content decoding.
DecoderConfig(String defaultContentCharset)
           
 
Method Summary
 DecoderConfig and()
          Syntactic sugar.
static DecoderConfig decoderConfig()
           
 String defaultContentCharset()
           
 DecoderConfig defaultContentCharset(String charset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoderConfig

public DecoderConfig()
Configure the decoder config to use "ISO-8859-1" for content decoding.


DecoderConfig

public DecoderConfig(String defaultContentCharset)
Method Detail

defaultContentCharset

public String defaultContentCharset()

defaultContentCharset

public DecoderConfig defaultContentCharset(String charset)

decoderConfig

public static DecoderConfig decoderConfig()
Returns:
A static way to create a new DecoderConfig instance without calling "new" explicitly. Mainly for syntactic sugar.

and

public DecoderConfig and()
Syntactic sugar.

Returns:
The same encoder config instance.


Copyright © 2010-2012. All Rights Reserved.