org.overlord.sramp.ui.server.rsvcs
Class LocalizationRemoteService

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.overlord.sramp.ui.server.rsvcs.LocalizationRemoteService
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ILocalizationRemoteService

public class LocalizationRemoteService
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements ILocalizationRemoteService

Implementation of the localization remote service. TODO cache the messages in memory - no need to read them from the properties file every time

Author:
eric.wittmann@redhat.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
LocalizationRemoteService()
          Constructor.
 
Method Summary
 Map<String,String> getMessages()
          Called to get all of the localized messages for the UI.
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizationRemoteService

public LocalizationRemoteService()
Constructor.

Method Detail

getMessages

public Map<String,String> getMessages()
                               throws RemoteServiceException
Description copied from interface: ILocalizationRemoteService
Called to get all of the localized messages for the UI.

Specified by:
getMessages in interface ILocalizationRemoteService
Throws:
RemoteServiceException
See Also:
ILocalizationRemoteService.getMessages()


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.