LocalTaskQueueTestConfig.DeferredTaskCallback

com.google.appengine.tools.development.testing

Class LocalTaskQueueTestConfig.DeferredTaskCallback

  • java.lang.Object
    • com.google.appengine.tools.development.testing.LocalTaskQueueTestConfig.DeferredTaskCallback
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int execute(URLFetchServicePb.URLFetchRequest req)
      Execute the provided url fetch request.
      protected int executeNonDeferredRequest(URLFetchServicePb.URLFetchRequest req)
      Broken out to make it easy for subclasses to provide their own behavior when the request payload is not a DeferredTask.
      void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
      This method will be invoked from LocalTaskQueue#init(com.google.appengine.tools.development.LocalServiceContext, Map) forwarding the properties parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeferredTaskCallback

        public DeferredTaskCallback()
    • Method Detail

      • initialize

        public void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
        Description copied from interface: LocalTaskQueueCallback
        This method will be invoked from LocalTaskQueue#init(com.google.appengine.tools.development.LocalServiceContext, Map) forwarding the properties parameter.
        Specified by:
        initialize in interface LocalTaskQueueCallback
      • execute

        public int execute(URLFetchServicePb.URLFetchRequest req)
        Description copied from interface: LocalTaskQueueCallback
        Execute the provided url fetch request.
        Specified by:
        execute in interface LocalTaskQueueCallback
        Parameters:
        req - The url fetch request
        Returns:
        The HTTP status code of the fetch.
      • executeNonDeferredRequest

        protected int executeNonDeferredRequest(URLFetchServicePb.URLFetchRequest req)
        Broken out to make it easy for subclasses to provide their own behavior when the request payload is not a DeferredTask.