[java-shib-shared] branch main updated: Subclass needs to override isFile.
Scott Cantor
cantor.2 at osu.edu
Thu Jun 15 18:04:41 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=7600e10358702d6109931d5d1fac3c6da6f4c1c4
The following commit(s) were added to refs/heads/main by this push:
new 7600e103 Subclass needs to override isFile.
7600e103 is described below
commit 7600e10358702d6109931d5d1fac3c6da6f4c1c4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jun 15 14:04:38 2023 -0400
Subclass needs to override isFile.
---
.../shared/spring/httpclient/resource/HTTPResource.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/shib-networking-spring/src/main/java/net/shibboleth/shared/spring/httpclient/resource/HTTPResource.java b/shib-networking-spring/src/main/java/net/shibboleth/shared/spring/httpclient/resource/HTTPResource.java
index ea5bfa3f..d7a836e2 100644
--- a/shib-networking-spring/src/main/java/net/shibboleth/shared/spring/httpclient/resource/HTTPResource.java
+++ b/shib-networking-spring/src/main/java/net/shibboleth/shared/spring/httpclient/resource/HTTPResource.java
@@ -218,6 +218,11 @@ public class HTTPResource extends AbstractIdentifiedInitializableComponent imple
return httpStatusCode == HttpStatus.SC_OK;
}
+ /** {@inheritDoc} */
+ @Override public boolean isFile() {
+ return false;
+ }
+
/** {@inheritDoc} */
@Override public boolean isReadable() {
return true;
@@ -357,7 +362,8 @@ public class HTTPResource extends AbstractIdentifiedInitializableComponent imple
* @throws IOException if we cannot set things up correctly
* @since 9.0.0
*/
- @Nonnull public HTTPResource createRelative(@Nonnull final String relativePath, @Nullable final HttpClientContextHandler handler) throws IOException {
+ @Nonnull public HTTPResource createRelative(@Nonnull final String relativePath,
+ @Nullable final HttpClientContextHandler handler) throws IOException {
final String path;
if (relativePath.startsWith("/")) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list