Package org.aoju.bus.shade.safety.boot
Class BootURLConnection
java.lang.Object
java.net.URLConnection
java.net.JarURLConnection
org.aoju.bus.shade.safety.boot.BootURLConnection
加密的URL连接
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class java.net.JarURLConnection
jarFileURLConnectionFields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
ConstructorsConstructorDescriptionBootURLConnection(JarURLConnection jarURLConnection, DecryptorProvider decryptorProvider, EncryptorProvider encryptorProvider, Key key) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestProperty(String key, String value) voidconnect()booleanintgetContent(Class[] classes) intlonglonggetDate()booleanbooleanbooleanlonggetHeaderField(int n) getHeaderField(String name) longgetHeaderFieldDate(String name, long Default) intgetHeaderFieldInt(String name, int Default) getHeaderFieldKey(int n) longgetHeaderFieldLong(String name, long Default) longlongintgetRequestProperty(String key) getURL()booleanvoidsetAllowUserInteraction(boolean allowUserInteraction) voidsetConnectTimeout(int timeout) voidsetDefaultUseCaches(boolean defaultUseCaches) voidsetDoInput(boolean doInput) voidsetDoOutput(boolean doOutput) voidsetIfModifiedSince(long ifModifiedSince) voidsetReadTimeout(int timeout) voidsetRequestProperty(String key, String value) voidsetUseCaches(boolean useCaches) toString()Methods inherited from class java.net.URLConnection
getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getFileNameMap, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap
-
Constructor Details
-
BootURLConnection
public BootURLConnection(JarURLConnection jarURLConnection, DecryptorProvider decryptorProvider, EncryptorProvider encryptorProvider, Key key) throws MalformedURLException - Throws:
MalformedURLException
-
-
Method Details
-
connect
- Specified by:
connectin classURLConnection- Throws:
IOException
-
getConnectTimeout
public int getConnectTimeout()- Overrides:
getConnectTimeoutin classURLConnection
-
setConnectTimeout
public void setConnectTimeout(int timeout) - Overrides:
setConnectTimeoutin classURLConnection
-
getReadTimeout
public int getReadTimeout()- Overrides:
getReadTimeoutin classURLConnection
-
setReadTimeout
public void setReadTimeout(int timeout) - Overrides:
setReadTimeoutin classURLConnection
-
getURL
- Overrides:
getURLin classURLConnection
-
getContentLength
public int getContentLength()- Overrides:
getContentLengthin classURLConnection
-
getContentLengthLong
public long getContentLengthLong()- Overrides:
getContentLengthLongin classURLConnection
-
getContentType
- Overrides:
getContentTypein classURLConnection
-
getContentEncoding
- Overrides:
getContentEncodingin classURLConnection
-
getExpiration
public long getExpiration()- Overrides:
getExpirationin classURLConnection
-
getDate
public long getDate()- Overrides:
getDatein classURLConnection
-
getLastModified
public long getLastModified()- Overrides:
getLastModifiedin classURLConnection
-
getHeaderField
- Overrides:
getHeaderFieldin classURLConnection
-
getHeaderFields
- Overrides:
getHeaderFieldsin classURLConnection
-
getHeaderFieldInt
- Overrides:
getHeaderFieldIntin classURLConnection
-
getHeaderFieldLong
- Overrides:
getHeaderFieldLongin classURLConnection
-
getHeaderFieldDate
- Overrides:
getHeaderFieldDatein classURLConnection
-
getHeaderFieldKey
- Overrides:
getHeaderFieldKeyin classURLConnection
-
getHeaderField
- Overrides:
getHeaderFieldin classURLConnection
-
getContent
- Overrides:
getContentin classURLConnection- Throws:
IOException
-
getContent
- Overrides:
getContentin classURLConnection- Throws:
IOException
-
getPermission
- Overrides:
getPermissionin classURLConnection- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classURLConnection- Throws:
IOException
-
toString
- Overrides:
toStringin classURLConnection
-
getDoInput
public boolean getDoInput()- Overrides:
getDoInputin classURLConnection
-
setDoInput
public void setDoInput(boolean doInput) - Overrides:
setDoInputin classURLConnection
-
getDoOutput
public boolean getDoOutput()- Overrides:
getDoOutputin classURLConnection
-
setDoOutput
public void setDoOutput(boolean doOutput) - Overrides:
setDoOutputin classURLConnection
-
getAllowUserInteraction
public boolean getAllowUserInteraction()- Overrides:
getAllowUserInteractionin classURLConnection
-
setAllowUserInteraction
public void setAllowUserInteraction(boolean allowUserInteraction) - Overrides:
setAllowUserInteractionin classURLConnection
-
getUseCaches
public boolean getUseCaches()- Overrides:
getUseCachesin classURLConnection
-
setUseCaches
public void setUseCaches(boolean useCaches) - Overrides:
setUseCachesin classURLConnection
-
getIfModifiedSince
public long getIfModifiedSince()- Overrides:
getIfModifiedSincein classURLConnection
-
setIfModifiedSince
public void setIfModifiedSince(long ifModifiedSince) - Overrides:
setIfModifiedSincein classURLConnection
-
getDefaultUseCaches
public boolean getDefaultUseCaches()- Overrides:
getDefaultUseCachesin classURLConnection
-
setDefaultUseCaches
public void setDefaultUseCaches(boolean defaultUseCaches) - Overrides:
setDefaultUseCachesin classURLConnection
-
setRequestProperty
- Overrides:
setRequestPropertyin classURLConnection
-
addRequestProperty
- Overrides:
addRequestPropertyin classURLConnection
-
getRequestProperty
- Overrides:
getRequestPropertyin classURLConnection
-
getRequestProperties
- Overrides:
getRequestPropertiesin classURLConnection
-
getJarFileURL
- Overrides:
getJarFileURLin classJarURLConnection
-
getEntryName
- Overrides:
getEntryNamein classJarURLConnection
-
getJarFile
- Specified by:
getJarFilein classJarURLConnection- Throws:
IOException
-
getManifest
- Overrides:
getManifestin classJarURLConnection- Throws:
IOException
-
getJarEntry
- Overrides:
getJarEntryin classJarURLConnection- Throws:
IOException
-
getAttributes
- Overrides:
getAttributesin classJarURLConnection- Throws:
IOException
-
getMainAttributes
- Overrides:
getMainAttributesin classJarURLConnection- Throws:
IOException
-
getCertificates
- Overrides:
getCertificatesin classJarURLConnection- Throws:
IOException
-