Class TestHTTPResource
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.spring.httpclient.resource.HTTPResource
net.shibboleth.shared.spring.httpclient.resource.TestHTTPResource
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiedComponent,InitializableComponent,Resource,Aware,BeanNameAware,InitializingBean,InputStreamSource,Resource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.cache.CacheResponseStatus -
Constructor Summary
ConstructorsConstructorDescriptionTestHTTPResource(org.apache.hc.client5.http.classic.HttpClient client, String url) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.cache.CacheResponseStatusprotected voidreportCachingStatus(org.apache.hc.client5.http.cache.HttpCacheContext context) Methods inherited from class net.shibboleth.shared.spring.httpclient.resource.HTTPResource
afterPropertiesSet, buildHttpClientContext, closeResponse, contentLength, createRelative, createRelative, createRelativeResource, exists, getDescription, getFile, getFilename, getInputStream, getResourceHeaders, getResponseHeader, getURI, getURL, isFile, isOpen, isReadable, lastModified, setBeanName, setHttpClientContextHandlerMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, setIdMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, readableChannel
-
Field Details
-
responseStatus
private org.apache.hc.client5.http.cache.CacheResponseStatus responseStatus
-
-
Constructor Details
-
TestHTTPResource
public TestHTTPResource(org.apache.hc.client5.http.classic.HttpClient client, String url) throws IOException - Throws:
IOException
-
-
Method Details
-
reportCachingStatus
protected void reportCachingStatus(org.apache.hc.client5.http.cache.HttpCacheContext context) - Overrides:
reportCachingStatusin classHTTPResource
-
getLastCacheResponseStatus
public org.apache.hc.client5.http.cache.CacheResponseStatus getLastCacheResponseStatus()
-