Package gov.nasa.gsfc.spdf.ssc
Class FileResult
- java.lang.Object
-
- gov.nasa.gsfc.spdf.ssc.Result
-
- gov.nasa.gsfc.spdf.ssc.FileResult
-
public class FileResult extends Result
This class represents the result of a Request to the Satellite Situation Center.- Version:
- $Revison: $
- Author:
- B. Harris
-
-
Constructor Summary
Constructors Constructor Description FileResult()
Constructs a default FileResult with no data.FileResult(Result value)
Constructs a FileResult with the statusCode, statusSubCode, and statusText from the given Result object.FileResult(ResultStatusCode statusCode, ResultStatusSubCode statusSubCode, java.util.List<java.lang.String> statusText, java.util.List<java.lang.String> urls)
Constructs a FileResult with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getUrls()
Gets the URLs to the files containing the requested information.void
setUrls(java.util.List<java.lang.String> value)
Sets the URLs to the files containing the requested information.-
Methods inherited from class gov.nasa.gsfc.spdf.ssc.Result
addStatusText, getStatusCode, getStatusSubCode, getStatusText, setStatusCode, setStatusSubCode, setStatusText
-
-
-
-
Constructor Detail
-
FileResult
public FileResult()
Constructs a default FileResult with no data.
-
FileResult
public FileResult(Result value)
Constructs a FileResult with the statusCode, statusSubCode, and statusText from the given Result object. There is no initial data.- Parameters:
value
- object containing the initial statusCode, statusSubCode, and statusText values
-
FileResult
public FileResult(ResultStatusCode statusCode, ResultStatusSubCode statusSubCode, java.util.List<java.lang.String> statusText, java.util.List<java.lang.String> urls)
Constructs a FileResult with the given values.- Parameters:
statusCode
- result status codestatusSubCode
- result status subcodestatusText
- result status texturls
- URLs to the files containing the requested information
-
-
Method Detail
-
getUrls
public java.util.List<java.lang.String> getUrls()
Gets the URLs to the files containing the requested information.- Returns:
- the URLs to the files containing the requested information
- See Also:
setUrls(java.util.List<java.lang.String>)
-
setUrls
public void setUrls(java.util.List<java.lang.String> value)
Sets the URLs to the files containing the requested information.- Parameters:
value
- new URLs- See Also:
getUrls()
-
-