Class UrlFetchJob

java.lang.Object
com.google.appengine.api.taskqueue.dev.UrlFetchJob
All Implemented Interfaces:
org.quartz.Job

public class UrlFetchJob extends Object implements org.quartz.Job
Quartz Job implementation that hits a url. The url to hit, the http method to invoke, headers, and any data that should be sent as part of the request are all determined by the TaskQueuePb.TaskQueueAddRequest contained in the job data. We delegate to LocalURLFetchService for the actual fetching.

initialize(LocalServerEnvironment, Clock) must be called before the first invocation of execute(JobExecutionContext).

  • Constructor Details

    • UrlFetchJob

      public UrlFetchJob()
  • Method Details

    • execute

      public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      execute in interface org.quartz.Job
      Throws:
      org.quartz.JobExecutionException