java.lang.Object
org.openprovenance.prov.service.core.ServiceUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecomposeResponseBadRequest(String result, Throwable thrown) jakarta.ws.rs.core.ResponsecomposeResponseError(jakarta.ws.rs.core.Response.Status status, String result, Throwable thrown) jakarta.ws.rs.core.ResponsecomposeResponseInternalServerError(String result, Throwable thrown) jakarta.ws.rs.core.ResponsecomposeResponseNotAcceptable(List<jakarta.ws.rs.core.Variant> vs) jakarta.ws.rs.core.ResponsecomposeResponseNotFOUND(String result) jakarta.ws.rs.core.ResponsecomposeResponseNotFOUND(String result, Throwable thrown) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsestatic jakarta.ws.rs.core.Response.ResponseBuilderjakarta.ws.rs.core.Response.ResponseBuilderjakarta.ws.rs.core.ResponsecontentNegotiationForDocument(jakarta.ws.rs.core.Request request, String path) jakarta.ws.rs.core.ResponsecontentNegotiationForDocument(jakarta.ws.rs.core.Request request, String msg, String uriPath) booleandeleteFromCache(String storageId) doProcessFile(InputStream inputStream, String mediaType) booleandoProcessFile(DocumentResource dr, boolean known) doProcessFileForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts) doProcessStatementsForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts, List<org.jboss.resteasy.plugins.providers.multipart.InputPart> type) doProcessURLForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts) getDestination(Map<String, List<org.jboss.resteasy.plugins.providers.multipart.InputPart>> formData) getDocumentFromCacheOrStore(String storageId) getDocumentFromStore(String storageId, DateTimeOption dateTimeOption, TimeZone timeZone) final Map<String, ResourceIndex<?>> getFileName(jakarta.ws.rs.core.MultivaluedMap<String, String> header) header sample { Content-Type=[image/png], Content-Disposition=[form-data; name="file"; filename="filename.extension"] }getFormDataValue(Map<String, List<org.jboss.resteasy.plugins.providers.multipart.InputPart>> formData, String name) static PropertiesgetPropertiesFromClasspath(String propFileName) static StringgetRequestURL(jakarta.servlet.http.HttpServletRequest request, String api, String docId, String action) static StringgetSystemOrEnvironmentVariableOrDefault(String name, String defaultValue) static booleanstatic StringloadConfigFromEnvironment(Map<String, String> defaultConfiguration) loadConfigFromSystem(Map<String, String> defaultConfiguration) voidprintStackTrace(PrintWriter pw, Throwable thrown)
-
Field Details
-
WILDCARD
- See Also:
-
ACCESS_CONTROL_ALLOW_ORIGIN
- See Also:
-
CONFIG_PROPERTIES
- See Also:
-
documentCache
-
-
Constructor Details
-
ServiceUtils
-
-
Method Details
-
getSystemOrEnvironmentVariableOrDefault
-
getGenericResourceStorageMap
-
getConfig
-
getPropertiesFromClasspath
-
getNonDocumentResourceStorage
-
getDocumentResourceIndex
-
getStorageManager
-
getExtensionMap
-
getNonDocumentResourceIndex
-
getProvFactory
-
getDestination
public ServiceUtils.Destination getDestination(Map<String, List<org.jboss.resteasy.plugins.providers.multipart.InputPart>> formData) throws IOException- Throws:
IOException
-
getJobManager
-
getFormDataValue
public String getFormDataValue(Map<String, List<org.jboss.resteasy.plugins.providers.multipart.InputPart>> formData, String name) throws IOException- Throws:
IOException
-
getAction
public ServiceUtils.Action getAction(Map<String, List<org.jboss.resteasy.plugins.providers.multipart.InputPart>> formData) throws IOException- Throws:
IOException
-
getRequestURL
-
isNumeric
-
isSelf
-
composeResponseNotFOUND
-
composeResponseBadRequest
-
composeResponseNotFOUND
-
composeResponseError
-
printStackTrace
-
composeResponseInternalServerError
-
composeResponseSeeOther
-
composeResponseOK
-
composeResponseNotAcceptable
public jakarta.ws.rs.core.Response composeResponseNotAcceptable(List<jakarta.ws.rs.core.Variant> vs) -
composeResponseNotFoundDocument
-
composeResponseNotFoundResource
-
composeResponseNotFoundConstraintResource
-
composeResponseNotFoundType
-
composeResponseNotFoundSummarisation
-
doProcessFile
-
doProcessFile
-
getDocumentFromCacheOrStore
- Throws:
IOException
-
getDocumentFromStore
public Document getDocumentFromStore(String storageId, DateTimeOption dateTimeOption, TimeZone timeZone) throws IOException - Throws:
IOException
-
deleteFromCache
-
doProcessStatementsForm
public DocumentResource doProcessStatementsForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts, List<org.jboss.resteasy.plugins.providers.multipart.InputPart> type) -
doProcessFileForm
public DocumentResource doProcessFileForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts) -
doProcessURLForm
public DocumentResource doProcessURLForm(List<org.jboss.resteasy.plugins.providers.multipart.InputPart> inputParts) -
getFileName
-
contentNegotiationForDocument
public jakarta.ws.rs.core.Response contentNegotiationForDocument(jakarta.ws.rs.core.Request request, String msg, String uriPath) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
contentNegotiationForDocument
public jakarta.ws.rs.core.Response contentNegotiationForDocument(jakarta.ws.rs.core.Request request, String path) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
loadConfigFromSystem
-
loadConfigFromEnvironment
-