As of 1.146, the {@code tree} parameter may be used to control the output * in detail; see {@link NamedPathPruner#NamedPathPruner(String)} for details. - * + * ' * *
{@link ExportConfig} is passed by the caller to control serialization behavior
* @since 1.251
*/
@@ -582,16 +582,6 @@ public String encodeRedirectURL(String url) {
return from.encodeRedirectURL(url);
}
- @Override
- public String encodeUrl(String url) {
- return from.encodeUrl(url);
- }
-
- @Override
- public String encodeRedirectUrl(String url) {
- return from.encodeRedirectUrl(url);
- }
-
@Override
public void sendError(int sc, String msg) throws IOException {
from.sendError(sc, msg);
@@ -642,11 +632,6 @@ public void setStatus(int sc) {
from.setStatus(sc);
}
- @Override
- public void setStatus(int sc, String sm) {
- from.setStatus(sc, sm);
- }
-
@Override
public int getStatus() {
return from.getStatus();
@@ -976,12 +961,14 @@ public String encodeRedirectURL(String url) {
@Override
public String encodeUrl(String url) {
- return from.encodeUrl(url);
+ // TODO implement this
+ throw new UnsupportedOperationException();
}
@Override
public String encodeRedirectUrl(String url) {
- return from.encodeRedirectUrl(url);
+ // TODO implement this
+ throw new UnsupportedOperationException();
}
@Override
@@ -1036,7 +1023,8 @@ public void setStatus(int sc) {
@Override
public void setStatus(int sc, String sm) {
- from.setStatus(sc, sm);
+ // TODO implement this
+ throw new UnsupportedOperationException();
}
@Override
diff --git a/core/src/main/java/org/kohsuke/stapler/StaplerResponse2Wrapper.java b/core/src/main/java/org/kohsuke/stapler/StaplerResponse2Wrapper.java
index de2fa1ae9..ba8328b8a 100644
--- a/core/src/main/java/org/kohsuke/stapler/StaplerResponse2Wrapper.java
+++ b/core/src/main/java/org/kohsuke/stapler/StaplerResponse2Wrapper.java
@@ -227,24 +227,12 @@ public String encodeRedirectURL(String url) {
return getWrapped().encodeRedirectURL(url);
}
- /** {@inheritDoc} */
- @Override
- public String encodeRedirectUrl(String url) {
- return getWrapped().encodeRedirectUrl(url);
- }
-
/** {@inheritDoc} */
@Override
public String encodeURL(String url) {
return getWrapped().encodeURL(url);
}
- /** {@inheritDoc} */
- @Override
- public String encodeUrl(String url) {
- return getWrapped().encodeUrl(url);
- }
-
/** {@inheritDoc} */
@Override
public void sendError(int sc) throws IOException {
@@ -281,12 +269,6 @@ public void setStatus(int sc) {
getWrapped().setStatus(sc);
}
- /** {@inheritDoc} */
- @Override
- public void setStatus(int sc, String sm) {
- getWrapped().setStatus(sc, sm);
- }
-
/** {@inheritDoc} */
@Override
public void flushBuffer() throws IOException {
diff --git a/core/src/test/java/org/kohsuke/stapler/MockRequest.java b/core/src/test/java/org/kohsuke/stapler/MockRequest.java
index f1bbc8c2d..fefac46af 100644
--- a/core/src/test/java/org/kohsuke/stapler/MockRequest.java
+++ b/core/src/test/java/org/kohsuke/stapler/MockRequest.java
@@ -3,6 +3,7 @@
import jakarta.servlet.AsyncContext;
import jakarta.servlet.DispatcherType;
import jakarta.servlet.RequestDispatcher;
+import jakarta.servlet.ServletConnection;
import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletInputStream;
@@ -171,12 +172,6 @@ public boolean isRequestedSessionIdFromURL() {
throw new UnsupportedOperationException();
}
- @Override
- public boolean isRequestedSessionIdFromUrl() {
- // TODO
- throw new UnsupportedOperationException();
- }
-
@Override
public Object getAttribute(String name) {
// TODO
@@ -324,12 +319,6 @@ public RequestDispatcher getRequestDispatcher(String path) {
throw new UnsupportedOperationException();
}
- @Override
- public String getRealPath(String path) {
- // TODO
- throw new UnsupportedOperationException();
- }
-
@Override
public long getContentLengthLong() {
// TODO
@@ -403,6 +392,24 @@ public DispatcherType getDispatcherType() {
throw new UnsupportedOperationException();
}
+ @Override
+ public String getRequestId() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public String getProtocolRequestId() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public ServletConnection getServletConnection() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
@Override
public String changeSessionId() {
// TODO
diff --git a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
index ceff626fd..ee582277a 100644
--- a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
+++ b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
@@ -69,27 +69,9 @@ public RequestDispatcher getNamedDispatcher(String name) {
return null;
}
- @Override
- public Servlet getServlet(String name) throws ServletException {
- return null;
- }
-
- @Override
- public Enumeration