org.kuali.student.common.ui.server.gwt
Class ServerPropertiesRpcGwtServlet

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.kuali.student.common.ui.server.gwt.ServerPropertiesRpcGwtServlet
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, Servlet, ServletConfig, ServerPropertiesRpcService

public class ServerPropertiesRpcGwtServlet
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements ServerPropertiesRpcService

See Also:
Serialized Form

Field Summary
(package private)  Logger logger
           
(package private)  Map<String,String> properties
           
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
ServerPropertiesRpcGwtServlet()
           
 
Method Summary
 Map<String,String> get(List<String> properties)
          Gets the list of properties from the server for use on the client side.
 String get(String property)
          Gets the property from the server for use on the client side.
 String getContextPath()
           
 Map<String,String> getProperties()
           
 void init(ServletConfig config)
           
 void setProperties(Map<String,String> properties)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

final Logger logger

properties

Map<String,String> properties
Constructor Detail

ServerPropertiesRpcGwtServlet

public ServerPropertiesRpcGwtServlet()
Method Detail

getProperties

public Map<String,String> getProperties()

setProperties

public void setProperties(Map<String,String> properties)

get

public String get(String property)
Description copied from interface: ServerPropertiesRpcService
Gets the property from the server for use on the client side.

Specified by:
get in interface ServerPropertiesRpcService
Parameters:
property - property name to get
Returns:
the property value

get

public Map<String,String> get(List<String> properties)
Description copied from interface: ServerPropertiesRpcService
Gets the list of properties from the server for use on the client side.

Specified by:
get in interface ServerPropertiesRpcService
Parameters:
properties - the properties to get
Returns:
a map of the properties and values, null if no property exists by the names given

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface ServerPropertiesRpcService
Returns:
the context path of the app

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.