Class TFEcf4Helper
java.lang.Object
edu.suffolk.litlab.efsp.server.truefiling.TFEcf4Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ServiceHelpers.EcfError> checkError(ErrorType error) Returns the error type on errors from the ECF side of the API.static List<ServiceHelpers.EcfError> checkErrors(List<ErrorType> errors) static jakarta.ws.rs.core.ResponsemakeResponse(QueryResponseMessageType resp, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc) static jakarta.ws.rs.core.ResponsemapErrorCodesToHttp(List<ServiceHelpers.EcfError> err, Supplier<jakarta.ws.rs.core.Response> defaultResp) static <T extends QueryMessageType>
T
-
Constructor Details
-
TFEcf4Helper
public TFEcf4Helper()
-
-
Method Details
-
prep
-
makeResponse
public static jakarta.ws.rs.core.Response makeResponse(QueryResponseMessageType resp, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc) -
checkErrors
-
checkError
Returns the error type on errors from the ECF side of the API. -
mapErrorCodesToHttp
public static jakarta.ws.rs.core.Response mapErrorCodesToHttp(List<ServiceHelpers.EcfError> err, Supplier<jakarta.ws.rs.core.Response> defaultResp)
-