Class CmsGwtServiceContext

  • All Implemented Interfaces:
    I_CmsEventListener

    public class CmsGwtServiceContext
    extends java.lang.Object
    implements I_CmsEventListener
    This class contains the data that should be cached for a specific service class.

    We cache instances of this class rather than caching instances of CmsGwtService directly because its superclass, RemoteServiceServlet, does some caching which we can't use because it doesn't take the distinction between online and offline requests into account.

    Since:
    8.0.0
    • Constructor Detail

      • CmsGwtServiceContext

        public CmsGwtServiceContext​(java.lang.String name)
        Creates a new service context object.

        Parameters:
        name - an identifier which is used for debugging
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getSerializationPolicy

        protected com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy​(CmsObject cms,
                                                                                            java.lang.String moduleBaseURL,
                                                                                            java.lang.String strongName)
        Returns the serialization policy for the service.

        Parameters:
        cms - the current CMS context
        moduleBaseURL - the module's base URL
        strongName - the strong name of the service
        Returns:
        the serialization policy for the given service
      • getSerializationPolicyPath

        protected java.lang.String getSerializationPolicyPath​(java.lang.String moduleBaseURL,
                                                              java.lang.String strongName)
        Finds the path of the serialization policy file.

        Parameters:
        moduleBaseURL - the GWT module's base url
        strongName - the strong name of the service
        Returns:
        the serialization policy path