Class FPC
- java.lang.Object
-
- com.astrolabsoftware.FinkBrowser.FinkPortalClient.FPC
-
public class FPC extends java.lang.Object
FPC
is a client for Fink Science Portal.- Author:
- J.Hrivnac
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ANOMALY_WS
private static java.lang.String
FINK_SCIENCE_PORTAL
private static java.lang.String
LATESTS_WS
private static org.apache.logging.log4j.Logger
log
Logging .private static java.lang.String
OBJECTS_WS
static SmallHttpClient
shc
-
Constructor Summary
Constructors Constructor Description FPC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSONArray
anomaly(JSONObject request)
Call Fink Science Portal anomaly Web Service.private static JSONArray
call(JSONObject request, java.lang.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 Detail
-
shc
public static SmallHttpClient shc
-
FINK_SCIENCE_PORTAL
private static java.lang.String FINK_SCIENCE_PORTAL
-
OBJECTS_WS
private static java.lang.String OBJECTS_WS
-
LATESTS_WS
private static java.lang.String LATESTS_WS
-
ANOMALY_WS
private static java.lang.String ANOMALY_WS
-
log
private static org.apache.logging.log4j.Logger log
Logging .
-
-
Constructor Detail
-
FPC
public FPC()
-
-
Method Detail
-
objects
public static JSONArray objects(JSONObject request) throws LomikelException
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
public static JSONArray latests(JSONObject request) throws LomikelException
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
public static JSONArray anomaly(JSONObject request) throws LomikelException
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
private static JSONArray call(JSONObject request, java.lang.String endpoint) throws LomikelException
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.
-
-