Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

LocalTaskQueueTestConfig.ServletInvokingTaskCallback

com.google.appengine.tools.development.testing

Class LocalTaskQueueTestConfig.ServletInvokingTaskCallback

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      protected abstract HttpServlet getDefaultServlet() 
      protected abstract java.util.Map<java.lang.String,? extends HttpServlet> getServletMap() 
      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

      • ServletInvokingTaskCallback

        public ServletInvokingTaskCallback()
    • Method Detail

      • getServletMap

        protected abstract java.util.Map<java.lang.String,? extends HttpServlet> getServletMap()
        Returns:
        A mapping from url path to HttpServlet. Where url path is a string that looks like "/foo/bar" (It must start with a '/' and should not contain characters that are not allowed in the path portion of a url.)
      • getDefaultServlet

        protected abstract HttpServlet getDefaultServlet()
        Returns:
        A servlet that will be used if none of the ones from getServletMap() match.