[java-support] branch dev/JSPT-111 updated: Add missing accessors for Brent's prototype.
Scott Cantor
cantor.2 at osu.edu
Tue Apr 12 14:52:51 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=00b93bdee24cf73e88e9c92440043c38e4122fd1
The following commit(s) were added to refs/heads/dev/JSPT-111 by this push:
new 00b93bd Add missing accessors for Brent's prototype.
00b93bd is described below
commit 00b93bdee24cf73e88e9c92440043c38e4122fd1
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