Constructor and Description |
---|
HttpTask(String title,
URL service)
Construct with a title and HTTP service locator.
|
Modifier and Type | Method and Description |
---|---|
String |
getResponse()
Get the recent response.
|
int |
getResponseCode()
Get the recent response code.
|
Date |
getResponseTime()
Get the recent response time.
|
URL |
getService()
Get an HTTP service.
|
String |
getTitle()
Get the task title.
|
void |
run() |
void |
setResponse(String response)
Set the recent response.
|
void |
setResponseCode(int responseCode)
Set recent response code.
|
void |
setResponseTime(Date responseTime)
Set the recent response time.
|
void |
setService(URL service)
Set a HTTP service.
|
void |
setTitle(String title)
Set the task title.
|
cancel, scheduledExecutionTime
public String getTitle()
public void setTitle(String title)
title
- the task title to setpublic URL getService()
public void setService(URL service)
service
- the HTTP service to setpublic Date getResponseTime()
public void setResponseTime(Date responseTime)
responseTime
- the recent response time to setpublic int getResponseCode()
public void setResponseCode(int responseCode)
responseCode
- the recent response code to setpublic String getResponse()
public void setResponse(String response)
response
- the recent response to setCopyright © 2015 Patrodyne. All Rights Reserved.