Package org.pac4j.core.resource
Class SpringResourceHelper
java.lang.Object
org.pac4j.core.resource.SpringResourceHelper
An helper with Spring Resource.
- Since:
- 6.0.0
- Author:
- Jerome LELEU
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.core.io.Resource
buildResourceFromPath
(String path) static InputStream
getResourceInputStream
(org.springframework.core.io.Resource resource, Proxy proxy, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier, int connectTimeout, int readTimeout) static org.springframework.core.io.UrlResource
newUrlResource
(String url)
-
Field Details
-
RESOURCE_PREFIX
- See Also:
-
CLASSPATH_PREFIX
- See Also:
-
FILE_PREFIX
- See Also:
-
-
Constructor Details
-
SpringResourceHelper
public SpringResourceHelper()
-
-
Method Details
-
getResourceInputStream
public static InputStream getResourceInputStream(org.springframework.core.io.Resource resource, Proxy proxy, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier, int connectTimeout, int readTimeout) throws IOException - Throws:
IOException
-
buildResourceFromPath
-
newUrlResource
-