This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 22f8fc7  Context API refactoring.
22f8fc7 is described below

commit 22f8fc7a33076778ac6ccb7d53d05e878a3510fa
Author: JamesBognar <[email protected]>
AuthorDate: Sun Sep 19 12:06:24 2021 -0400

    Context API refactoring.
---
 .../src/main/java/org/apache/juneau/rest/RestContext.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
 
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
index 48224e1..7b5f67b 100644
--- 
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
+++ 
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
@@ -358,7 +358,7 @@ public class RestContext extends Context {
         *
         * @return The resource resolver associated with this context.
         */
-       protected BeanStore getBeanStore() {
+       public BeanStore getBeanStore() {
                return beanStore;
        }
 
@@ -1061,7 +1061,7 @@ public class RestContext extends Context {
         * @param res The rest response.
         * @return The wrapped request/response pair.
         */
-       protected RestCall createCall(Object resource, HttpServletRequest req, 
HttpServletResponse res) {
+       public RestCall createCall(Object resource, HttpServletRequest req, 
HttpServletResponse res) {
                return new RestCall(resource, this, req, 
res).logger(getCallLogger());
        }
 
@@ -1220,7 +1220,7 @@ public class RestContext extends Context {
         * @throws BasicHttpException Non-200 response.
         * @throws NotImplemented No registered response processors could 
handle the call.
         */
-       public void processResponse(RestCall call) throws IOException, 
BasicHttpException, NotImplemented {
+       protected void processResponse(RestCall call) throws IOException, 
BasicHttpException, NotImplemented {
 
                // Loop until we find the correct processor for the POJO.
                int loops = 5;
@@ -1253,7 +1253,7 @@ public class RestContext extends Context {
         * @param t The thrown object.
         * @return The converted thrown object.
         */
-       public Throwable convertThrowable(Throwable t) {
+       protected Throwable convertThrowable(Throwable t) {
 
                ClassInfo ci = ClassInfo.ofc(t);
                if (ci.is(InvocationTargetException.class)) {
@@ -1293,7 +1293,7 @@ public class RestContext extends Context {
         * @param call The HTTP call.
         * @throws Exception Any exception can be thrown.
         */
-       public void handleNotFound(RestCall call) throws Exception {
+       protected void handleNotFound(RestCall call) throws Exception {
                String pathInfo = call.getPathInfo();
                String methodUC = call.getMethod();
                int rc = call.getStatus();
@@ -1318,7 +1318,7 @@ public class RestContext extends Context {
         * @param e The exception that occurred.
         * @throws IOException Can be thrown if a problem occurred trying to 
write to the output stream.
         */
-       public synchronized void handleError(RestCall call, Throwable e) throws 
IOException {
+       protected synchronized void handleError(RestCall call, Throwable e) 
throws IOException {
 
                call.exception(e);
 

Reply via email to