Package org.aoju.bus.image.galaxy.media
Class AbstractStowrs
java.lang.Object
org.aoju.bus.image.galaxy.media.AbstractStowrs
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
StowrsMultiFiles,StowrsSingleFile
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpURLConnectionvoidclose()protected static voidensureUID(Attributes attrs, int tag) static Stringstatic StringBuilderformatDA(TimeZone tz, Date date, StringBuilder toAppendTo) static Stringstatic StringformatTM(TimeZone tz, Date date, DatePrecision precision) protected StringgetContentLocation(Attributes metadata) protected voidremoveConnection(HttpURLConnection httpPost) protected static voidsetEncapsulatedDocumentAttributes(Path bulkDataFile, Attributes metadata, String mdiaType) protected voidprotected AttributeswriteEndMarkers(HttpURLConnection httpPost, DataOutputStream out) protected voidwriteEndMarkers(HttpURLConnection httpPost, DataOutputStream out, String iuid)
-
Field Details
-
MULTIPART_BOUNDARY
- See Also:
-
-
Constructor Details
-
AbstractStowrs
-
-
Method Details
-
ensureUID
-
setEncapsulatedDocumentAttributes
protected static void setEncapsulatedDocumentAttributes(Path bulkDataFile, Attributes metadata, String mdiaType) -
formatDA
-
formatDA
-
formatTM
-
formatTM
-
buildConnection
- Throws:
IOException
-
writeContentMarkers
- Throws:
IOException
-
writeEndMarkers
protected void writeEndMarkers(HttpURLConnection httpPost, DataOutputStream out, String iuid) throws IOException - Throws:
IOException
-
writeEndMarkers
protected Attributes writeEndMarkers(HttpURLConnection httpPost, DataOutputStream out) throws IOException, ParserConfigurationException, SAXException -
getContentLocation
-
removeConnection
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getContentType
-
getRequestURL
-
getHeaders
-