com.jayway.restassured.config
Class EncoderConfig

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

public class EncoderConfig
extends Object

Allows you to specify configuration for the encoder


Constructor Summary
EncoderConfig()
          Configure the encoder config to use for content encoding and .
EncoderConfig(String defaultContentCharset, String defaultQueryParameterCharset)
           
 
Method Summary
 EncoderConfig and()
          Syntactic sugar.
 String defaultContentCharset()
           
 EncoderConfig defaultContentCharset(String charset)
           
 String defaultQueryParameterCharset()
           
 EncoderConfig defaultQueryParameterCharset(String charset)
           
static EncoderConfig encoderConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncoderConfig

public EncoderConfig()
Configure the encoder config to use for content encoding and . for query parameter encoding.


EncoderConfig

public EncoderConfig(String defaultContentCharset,
                     String defaultQueryParameterCharset)
Method Detail

defaultContentCharset

public String defaultContentCharset()

defaultQueryParameterCharset

public String defaultQueryParameterCharset()

defaultContentCharset

public EncoderConfig defaultContentCharset(String charset)

defaultQueryParameterCharset

public EncoderConfig defaultQueryParameterCharset(String charset)

encoderConfig

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

and

public EncoderConfig and()
Syntactic sugar.

Returns:
The same encoder config instance.


Copyright © 2010-2012. All Rights Reserved.