com.cc.framework.adapter
Class HttpResourceTranslator

java.lang.Object
  extended bycom.cc.framework.adapter.HttpResourceTranslator
All Implemented Interfaces:
ResourceTranslator

public class HttpResourceTranslator
extends java.lang.Object
implements ResourceTranslator

Resource Translator for HTTP context

Author:
P001002

Field Summary
private  FrameworkAdapter adapter
           
private  HttpContext context
           
 
Constructor Summary
HttpResourceTranslator(HttpContext context)
          Constructor
 
Method Summary
 java.lang.String translate(java.lang.String resourceKey, boolean returnNull)
          Translates the given resource key
 java.lang.String translate(java.lang.String resourceKey, java.util.Locale locale, boolean returnNull)
          Translates the given resource key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private HttpContext context

adapter

private FrameworkAdapter adapter
Constructor Detail

HttpResourceTranslator

public HttpResourceTranslator(HttpContext context)
Constructor

Parameters:
context - the HTTP context
Method Detail

translate

public java.lang.String translate(java.lang.String resourceKey,
                                  boolean returnNull)
                           throws java.lang.Exception
Description copied from interface: ResourceTranslator
Translates the given resource key

Specified by:
translate in interface ResourceTranslator
Parameters:
resourceKey - resource key to translate
returnNull - controls whether to return null or a not present indicator
Returns:
translated key
Throws:
java.lang.Exception
See Also:
ResourceTranslator.translate(java.lang.String, boolean)

translate

public java.lang.String translate(java.lang.String resourceKey,
                                  java.util.Locale locale,
                                  boolean returnNull)
                           throws java.lang.Exception
Description copied from interface: ResourceTranslator
Translates the given resource key

Specified by:
translate in interface ResourceTranslator
Parameters:
resourceKey - resource key to translate
locale - the Locale to use
returnNull - controls whether to return null or a not present indicator
Returns:
translated key
Throws:
java.lang.Exception
See Also:
ResourceTranslator.translate(java.lang.String, java.util.Locale, boolean)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.