Class FPC
java.lang.Object
com.astrolabsoftware.FinkBrowser.FinkPortalClient.FPC
FPC
is a client for Fink Science Portal.- Author:
- J.Hrivnac
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
private static String
private static String
private static org.apache.logging.log4j.Logger
Logging .private static String
static SmallHttpClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONArray
anomaly
(JSONObject request) Call Fink Science Portal anomaly Web Service.private static JSONArray
call
(JSONObject request, String endpoint) Call Fink Science Portal Web Service.static JSONArray
latests
(JSONObject request) Call Fink Science Portal latests Web Service.static JSONArray
objects
(JSONObject request) Call Fink Science Portal objects Web Service.
-
Field Details
-
shc
-
FINK_SCIENCE_PORTAL
-
OBJECTS_WS
-
LATESTS_WS
-
ANOMALY_WS
-
log
Logging .
-
-
Constructor Details
-
FPC
public FPC()
-
-
Method Details
-
objects
Call Fink Science Portal objects Web Service. https://api.fink-portal.org/api/v1.- Parameters:
request
- The requested formulated asJSONObject
.endpoint
- The service endpoint.- Returns:
- The answer formulated as
JSONArray
. - Throws:
LomikelException
- If call fails.
-
latests
Call Fink Science Portal latests Web Service. https://api.fink-portal.org/api/v1/latests.- Parameters:
request
- The requested formulated asJSONObject
.endpoint
- The service endpoint.- Returns:
- The answer formulated as
JSONArray
. - Throws:
LomikelException
- If call fails.
-
anomaly
Call Fink Science Portal anomaly Web Service. https://api.fink-portal.org/api/v1/anomaly.- Parameters:
request
- The requested formulated asJSONObject
.endpoint
- The service endpoint.- Returns:
- The answer formulated as
JSONArray
. - Throws:
LomikelException
- If call fails.
-
call
Call Fink Science Portal Web Service.- Parameters:
request
- The requested formulated asJSONObject
.endpoint
- The service endpoint.- Returns:
- The answer formulated as
JSONArray
. - Throws:
LomikelException
- If call fails.
-