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()
        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()
        A servlet that will be used if none of the ones from getServletMap() match.