You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/02/22 05:04:18 UTC

svn commit: r510380 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Author: saminda
Date: Wed Feb 21 20:04:18 2007
New Revision: 510380

URL: http://svn.apache.org/viewvc?view=rev&rev=510380
Log:
Applied accessors to inner classes. Make helper methods public 

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?view=diff&rev=510380&r1=510379&r2=510380
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java Wed Feb 21 20:04:18 2007
@@ -272,7 +272,7 @@
      * @param response
      * @throws IOException
      */
-    private void disableRESTErrorMessage(HttpServletResponse response) throws IOException {
+    protected void disableRESTErrorMessage(HttpServletResponse response) throws IOException {
         PrintWriter writer = new PrintWriter(response.getOutputStream());
         writer.println("<html><body><h2>Please enable REST support in WEB-INF/conf/axis2.xml " +
                        "and WEB-INF/web.xml</h2></body></html>");
@@ -687,7 +687,7 @@
         return sessionContext;
     }
 
-    class ServletRequestResponseTransport implements RequestResponseTransport {
+    protected class ServletRequestResponseTransport implements RequestResponseTransport {
         private HttpServletResponse response;
         private CountDownLatch responseReadySignal = new CountDownLatch(1);
         RequestResponseTransportStatus status = RequestResponseTransportStatus.INITIAL;
@@ -736,12 +736,12 @@
      * Ues in processing REST related Requests.
      * This is the helper Class use in processing of doGet, doPut , doDelete and doPost.
      */
-    private class ProcessRESTRequest {
+    public class ProcessRESTRequest {
         MessageContext messageContext;
         HttpServletRequest request;
         HttpServletResponse response;
 
-        ProcessRESTRequest(String httpMethodString, HttpServletRequest request,
+        public ProcessRESTRequest(String httpMethodString, HttpServletRequest request,
                            HttpServletResponse response)
                 throws IOException {
             this.request = request;
@@ -753,7 +753,7 @@
 
         }
 
-        void processXMLRequest() throws IOException, ServletException {
+        public void processXMLRequest() throws IOException, ServletException {
             try {
                 new RESTUtil(configContext).processPostRequest(messageContext, request, response);
                 this.checkResponseWritten();
@@ -765,7 +765,7 @@
 
         }
 
-        void processURLRequest() throws IOException, ServletException {
+        public void processURLRequest() throws IOException, ServletException {
             try {
                 new RESTUtil(configContext).processGetRequest(messageContext, request, response);
                 this.checkResponseWritten();
@@ -776,7 +776,7 @@
 
         }
 
-        void checkResponseWritten() {
+        private void checkResponseWritten() {
             Object contextWritten =
                     messageContext.getOperationContext()
                             .getProperty(Constants.RESPONSE_WRITTEN);
@@ -785,7 +785,7 @@
             }
         }
 
-        void processFault(AxisFault e) throws ServletException, IOException {
+        private void processFault(AxisFault e) throws ServletException, IOException {
             log.debug(e);
             if (messageContext != null) {
                 processAxisFault(messageContext, response, response.getOutputStream(), e);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org