Package xyz.cp74.download
Class Response
- java.lang.Object
-
- xyz.cp74.download.Response
-
public class Response extends Object
Response of download- Author:
- Christian Paul
-
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()StringgetContentEncoding()longgetContentLength()StringgetContentType()StringgetLastModified()LocalegetLocale()StringgetLocation()longgetResponseTime()intgetStatusCode()StringgetStatusMessage()StringgetTargetFileName()booleanisRedirected()voidsetContent(String content)voidsetContentEncoding(String contentEncoding)voidsetContentLength(long contentLength)voidsetContentType(String contentType)voidsetLastModified(String lastModified)voidsetLocale(Locale locale)voidsetLocation(String location)voidsetRedirected(boolean redirected)voidsetResponseTime(long responseTime)voidsetStatusCode(int statusCode)voidsetStatusMessage(String statusMessage)voidsetTargetFileName(String targetFileName)StringtoString()
-
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
- Returns:
- the statusCode
-
setStatusCode
public void setStatusCode(int statusCode)
- Parameters:
statusCode- the statusCode to set
-
getStatusMessage
public String getStatusMessage()
- Returns:
- the statusMessage
-
setStatusMessage
public void setStatusMessage(String statusMessage)
- Parameters:
statusMessage- the statusMessage to set
-
getResponseTime
public long getResponseTime()
- Returns:
- the responseTime
-
setResponseTime
public void setResponseTime(long responseTime)
- Parameters:
responseTime- the responseTime to set
-
getLocale
public Locale getLocale()
- Returns:
- the locale
-
setLocale
public void setLocale(Locale locale)
- Parameters:
locale- the locale to set
-
getContentLength
public long getContentLength()
- Returns:
- the contentLength
-
setContentLength
public void setContentLength(long contentLength)
- Parameters:
contentLength- the contentLength to set
-
getContentType
public String getContentType()
- Returns:
- the contentType
-
setContentType
public void setContentType(String contentType)
- Parameters:
contentType- the contentType to set
-
getContentEncoding
public String getContentEncoding()
- Returns:
- the contentEncoding
-
setContentEncoding
public void setContentEncoding(String contentEncoding)
- Parameters:
contentEncoding- the contentEncoding to set
-
getLastModified
public String getLastModified()
- Returns:
- the lastModified
-
setLastModified
public void setLastModified(String lastModified)
- Parameters:
lastModified- the lastModified to set
-
getLocation
public String getLocation()
- Returns:
- the location
-
setLocation
public void setLocation(String location)
- Parameters:
location- the location to set
-
getContent
public String getContent()
- Returns:
- the content
-
setContent
public void setContent(String content)
- Parameters:
content- the content to set
-
getTargetFileName
public String getTargetFileName()
- Returns:
- the targetFileName
-
setTargetFileName
public void setTargetFileName(String targetFileName)
- Parameters:
targetFileName- the targetFileName to set
-
isRedirected
public boolean isRedirected()
- Returns:
- the redirected
-
setRedirected
public void setRedirected(boolean redirected)
- Parameters:
redirected- the redirected to set
-
-