Project Wonder 2.0

er.extensions
Class ERXMessageEncoding

java.lang.Object
  extended byer.extensions.ERXMessageEncoding
All Implemented Interfaces:
Serializable

public class ERXMessageEncoding
extends Object
implements Serializable

Holds encoding related settings and methods for WOMessage and its subclasses WORequest and WOResponse.

See Also:
Serialized Form

Constructor Summary
ERXMessageEncoding(NSArray preferedLanguages)
           
ERXMessageEncoding(String languageOrEncoding)
           
 
Method Summary
static NSArray availableEncodings()
           
static NSArray availableLanguages()
           
protected static IllegalArgumentException createIllegalArgumentException(String value, String target, String listingMethod)
           
static String defaultEncoding()
           
static String defaultEncodingForLanguage(String language)
           
 String encoding()
           
static void resetToFactoryDefault()
           
static void setDefaultEncoding(String newDefaultEncoding)
           
static void setDefaultEncodingForAllLanguages(String newDefaultEncoding)
           
static void setDefaultEncodingForLanguage(String encoding, String language)
           
 void setDefaultFormValueEncodingToRequest(WORequest request)
           
static void setDefaultFormValueEncodingToRequest(WORequest request, String encoding)
           
 void setEncodingToResponse(WOResponse response)
           
static void setEncodingToResponse(WOResponse response, String encoding)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXMessageEncoding

public ERXMessageEncoding(String languageOrEncoding)

ERXMessageEncoding

public ERXMessageEncoding(NSArray preferedLanguages)
Method Detail

encoding

public String encoding()

resetToFactoryDefault

public static void resetToFactoryDefault()

availableEncodings

public static NSArray availableEncodings()

availableLanguages

public static NSArray availableLanguages()

defaultEncoding

public static String defaultEncoding()

setDefaultEncoding

public static void setDefaultEncoding(String newDefaultEncoding)

setDefaultEncodingForAllLanguages

public static void setDefaultEncodingForAllLanguages(String newDefaultEncoding)

defaultEncodingForLanguage

public static String defaultEncodingForLanguage(String language)

setDefaultEncodingForLanguage

public static void setDefaultEncodingForLanguage(String encoding,
                                                 String language)

setEncodingToResponse

public static void setEncodingToResponse(WOResponse response,
                                         String encoding)

setEncodingToResponse

public void setEncodingToResponse(WOResponse response)

setDefaultFormValueEncodingToRequest

public static void setDefaultFormValueEncodingToRequest(WORequest request,
                                                        String encoding)

setDefaultFormValueEncodingToRequest

public void setDefaultFormValueEncodingToRequest(WORequest request)

createIllegalArgumentException

protected static IllegalArgumentException createIllegalArgumentException(String value,
                                                                         String target,
                                                                         String listingMethod)

toString

public String toString()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.