[java-support] 15/21: Add missing accessors for Brent's prototype.
Scott Cantor
cantor.2 at osu.edu
Thu Jun 2 14:39:02 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch dev/JSPT-111
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=911cd982a2d8eb28c20cd49bf30827f6ab2b46c4
commit 911cd982a2d8eb28c20cd49bf30827f6ab2b46c4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Apr 12 10:52:47 2022 -0400
Add missing accessors for Brent's prototype.
---
.../utilities/java/support/ddf/RemotedHttpServletRequest.java | 9 +++++++++
.../java/support/ddf/RemotedHttpServletResponse.java | 11 ++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletRequest.java b/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletRequest.java
index 5b75523..9346542 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletRequest.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletRequest.java
@@ -112,6 +112,15 @@ public class RemotedHttpServletRequest implements HttpServletRequest {
obj = Constraint.isNotNull(ddf, "DDF cannot be null");
}
+ /**
+ * Gets the underlying object containing the remoted data.
+ *
+ * @return remoted data object
+ */
+ @Nonnull public DDF getDDF() {
+ return obj;
+ }
+
/** {@inheritDoc} */
public Object getAttribute(final String name) {
// TODO: might use this to expose certain "standard" pieces of information
diff --git a/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletResponse.java b/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletResponse.java
index 4160cfc..6faf486 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletResponse.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/ddf/RemotedHttpServletResponse.java
@@ -65,12 +65,21 @@ public class RemotedHttpServletResponse implements HttpServletResponse {
*
* @param ddf object to capture response
*/
- public RemotedHttpServletResponse(final DDF ddf) {
+ public RemotedHttpServletResponse(@Nonnull final DDF ddf) {
obj = Constraint.isNotNull(ddf, "DDF cannot be null");
obj.structure();
bufferSize = 1024;
}
+ /**
+ * Gets the underlying object containing the response data.
+ *
+ * @return remoted data object
+ */
+ @Nonnull public DDF getDDF() {
+ return obj;
+ }
+
/** {@inheritDoc} */
public String getCharacterEncoding() {
return "UTF-8";
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list