Package org.mapfish.print.url.data
Class DataUrlConnection
java.lang.Object
java.net.URLConnection
org.mapfish.print.url.data.DataUrlConnection
Decodes the base64 data and provides an appropriate InputStream.
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect()
Get the content-type, including the optional ";base64".Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Constructor Details
-
DataUrlConnection
Must be overridden.- Parameters:
url
- the data url
-
-
Method Details
-
connect
public void connect()- Specified by:
connect
in classURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
-
getContentType
- Overrides:
getContentType
in classURLConnection
-
getFullContentType
Get the content-type, including the optional ";base64".
-