axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r179504 - in /webservices/axis/trunk/java/modules/core: conf/ html/ src/org/apache/axis/ src/org/apache/axis/engine/ src/org/apache/axis/transport/http/
Date Thu, 02 Jun 2005 04:23:27 GMT
Author: deepal
Date: Wed Jun  1 21:23:22 2005
New Revision: 179504

URL: http://svn.apache.org/viewcvs?rev=179504&view=rev
Log:
axis2 administartion page

Added:
    webservices/axis/trunk/java/modules/core/html/SelectService.jsp
    webservices/axis/trunk/java/modules/core/html/ViewGlobalHandlers.jsp
    webservices/axis/trunk/java/modules/core/html/ViewServiceHandlers.jsp
Modified:
    webservices/axis/trunk/java/modules/core/conf/web.xml
    webservices/axis/trunk/java/modules/core/html/LeftFrame.jsp
    webservices/axis/trunk/java/modules/core/html/Loging.jsp
    webservices/axis/trunk/java/modules/core/html/MainFrame.jsp
    webservices/axis/trunk/java/modules/core/html/TopFrame.jsp
    webservices/axis/trunk/java/modules/core/html/admin.jsp
    webservices/axis/trunk/java/modules/core/html/engagingglobally.jsp
    webservices/axis/trunk/java/modules/core/html/globalModules.jsp
    webservices/axis/trunk/java/modules/core/html/index.jsp
    webservices/axis/trunk/java/modules/core/html/listModules.jsp
    webservices/axis/trunk/java/modules/core/html/listService.jsp
    webservices/axis/trunk/java/modules/core/html/viewphases.jsp
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/Constants.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfiguration.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfigurationImpl.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java

Modified: webservices/axis/trunk/java/modules/core/conf/web.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/conf/web.xml?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/conf/web.xml (original)
+++ webservices/axis/trunk/java/modules/core/conf/web.xml Wed Jun  1 21:23:22 2005
@@ -50,13 +50,25 @@
         <servlet-name>AxisServlet</servlet-name>
         <url-pattern>/engagingglobally</url-pattern>
     </servlet-mapping>
-     <servlet-mapping>
+    <servlet-mapping>
         <servlet-name>AxisServlet</servlet-name>
         <url-pattern>/engageToService</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>AxisServlet</servlet-name>
         <url-pattern>/adminloging</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/viewGlobalHandlers</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/selectService</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/viewServiceHandlers</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>AxisServlet</servlet-name>

Modified: webservices/axis/trunk/java/modules/core/html/LeftFrame.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/LeftFrame.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/LeftFrame.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/LeftFrame.jsp Wed Jun  1 21:23:22 2005
@@ -2,7 +2,7 @@
 <html>
 <%
 /*
-* Copyright 2002,2004 The Apache Software Foundation.
+* Copyright 2004,2005 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -15,7 +15,15 @@
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
+*
+*
 */
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
 %>
 <head>
 <title>Untitled Document</title>
@@ -23,9 +31,119 @@
 </style></head>
 
 <body>
+<table width="100%">
+  <tr>
+     <td colspan="2" >
+      <b> View System Components</b>
+     </td>
+  </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="listService" target="mainFrame">List Available Services</a>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="listModules" target="mainFrame">List Available Modules</a>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td>
+      <a href="globalModules" target="mainFrame">List Globally Engaged Modules</a>
+    </td>
+ </tr>
+ <tr>
+    <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+    </td>
+    <td >
+      <a href="listPhases" target="mainFrame">View Available Phases</a>
+    </td>
+ </tr>
+ <tr>
+    <td colspan="2">
+     <br>
+    </td>
+ </tr>
+  <tr>
+     <td colspan="2" >
+       <b>View Phases and Handlers</b>
+     </td>
+  </tr>
+   <tr>
+       <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+       </td>
+       <td>
+         <a href="viewGlobalHandlers" target="mainFrame">Gloabal Phases and Handlers </a>
+       </td>
+    </tr>
+    <tr>
+       <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+       </td>
+       <td>
+         <a href="selectService" target="mainFrame">View Service Phases and Hnadlers</a>
+       </td>
+    </tr>
+    <tr>
+       <td colspan="2">
+        <br>
+      </td>
+   </tr>
+    <tr>
+     <td colspan="2" >
+       <b>Enage Module</b>
+     </td>
+  </tr>
+   <tr>
+       <td>
+        &nbsp;&nbsp;&nbsp;&nbsp;
+       </td>
+       <td>
+         <a href="engagingglobally" target="mainFrame">Gloabally</a>
+       </td>
+    </tr>
+
+    <tr>
+       <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+       </td>
+       <td>
+         <a href="engageToService" target="mainFrame">To A service</a>
+       </td>
+    </tr>
+
+     <tr>
+       <td>
+       &nbsp;&nbsp;&nbsp;&nbsp;
+       </td>
+       <td>
+         <a href="enaggingtoanopeartion.jsp" target="mainFrame">To an Operation</a>
+       </td>
+    </tr>
+</table>
+
+<%--
+
 <p><a href="listService" target="mainFrame">List Available Services</a></p>
 <p><a href="listModules" target="mainFrame">List Available Modules</a></p>
 <p><a href="globalModules" target="mainFrame">List Globally Engaged Modules</a></p>
+<p>View Phases and Handlers</p>
+<blockquote>
+  <p><a href="viewGlobalHandlers" target="mainFrame">Gloabal Phases and Handlers </a></p>
+  <p><a href="selectService" target="mainFrame">View Service Phases and Hnadlers</a></p>
+  <p>&nbsp;</p>
+</blockquote>
 <p>Enage Module</p>
 <blockquote>
   <p><a href="engagingglobally" target="mainFrame">Gloabally</a></p>
@@ -33,6 +151,6 @@
   <p><a href="enaggingtoanopeartion.jsp" target="mainFrame">To an Operation</a></p>
   <p>&nbsp;</p>
 </blockquote>
-<p><a href="listPhases" target="mainFrame">View Available Phases</a> </p>
+<p><a href="listPhases" target="mainFrame">View Available Phases</a> </p>--%>
 </body>
 </html>

Modified: webservices/axis/trunk/java/modules/core/html/Loging.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/Loging.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/Loging.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/Loging.jsp Wed Jun  1 21:23:22 2005
@@ -4,15 +4,33 @@
                  java.util.Iterator,
                  org.apache.axis.description.ModuleDescription"%>
  <%--
-  Created by IntelliJ IDEA.
-  User: me
-  Date: May 31, 2005
-  Time: 2:53:56 PM
-  To change this template use File | Settings | File Templates.
+ /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+* Author : Deepal Jayasinghe
+* Date: May 26, 2005
+* Time: 7:14:26 PM
+*/
 --%>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
-  <head><title>Loging to Axis2:: Administartion page</title></head>
+  <head><title>Login to Axis2:: Administartion page</title></head>
   <body>
   <jsp:include page="include/header.inc"></jsp:include>
     <form method="get" name="LogingForm" action="adminloging">
@@ -24,17 +42,26 @@
                 </td>
             </tr>
             <tr>
-                <td>User Name : <INPUT align="left" TYPE=TEXT NAME="userName">
+                <td align="right" >User Name :</td>
+                <td> <INPUT align="left" TYPE=TEXT NAME="userName">
                 </td>
              </tr>
              <tr>
-                <td>Password     : <INPUT align="left" TYPE=PASSWORD NAME="password">
+                <td align="right">Password     : </td>
+                <td><INPUT align="left" TYPE=PASSWORD NAME="password">
                 </td>
              </tr>
              <tr>
-             <td>
-             <input align="right" name="submit" type="submit" value=" Logging " >
-             <input align="left" name="cancel" type="reset" value=" Clear " >
+               <td colspan="2">
+                 <br>
+               </td>
+             </tr>
+             <tr>
+             <td align="right">
+                 <input  name="submit" type="submit" value=" Login  " >
+             </td>
+             <td align="left">
+                <input  name="cancel" type="reset" value=" Clear " >
              </td>
              </tr>
          </table>

Modified: webservices/axis/trunk/java/modules/core/html/MainFrame.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/MainFrame.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/MainFrame.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/MainFrame.jsp Wed Jun  1 21:23:22 2005
@@ -1,5 +1,28 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-"http://www.w3.org/TR/html4/loose.dtd">
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Added: webservices/axis/trunk/java/modules/core/html/SelectService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/SelectService.jsp?rev=179504&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/SelectService.jsp (added)
+++ webservices/axis/trunk/java/modules/core/html/SelectService.jsp Wed Jun  1 21:23:22 2005
@@ -0,0 +1,95 @@
+<%@ page import="java.util.HashMap,
+                 org.apache.axis.Constants,
+                 java.util.Collection,
+                 java.util.Iterator,
+                 org.apache.axis.description.ModuleDescription,
+                 org.apache.axis.description.ServiceDescription"%>
+  <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>Simple jsp page</title></head>
+  <body>
+<form method="get" name="engaginModule" action="viewServiceHandlers">
+<table border="0" width="100%" cellspacing="1" cellpadding="1">
+    <tr>
+        <td>
+            &nbsp;
+            &nbsp;
+        </td>
+    </tr>
+    <tr>
+           <td>
+             &nbsp;
+             &nbsp;
+           </td>
+         </tr>
+         <tr>
+        <td>Select a Service :</td>
+    </tr>
+    <tr>
+        <td>
+            <select name="service">
+            <%
+                HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
+                Collection serviceCol =  services.values();
+                for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
+                    ServiceDescription axisService = (ServiceDescription)iterator.next();
+                    String servicName = axisService.getName().getLocalPart();
+            %> <option  align="left" value="<%=servicName%>"><%=servicName%></option>
+             <%
+                }
+             %>
+           </td>
+        </tr>
+        <tr>
+           <td>
+             &nbsp;
+             &nbsp;
+           </td>
+         </tr>
+         <tr>
+             <td>
+                <input name="submit" type="submit" value=" View " >
+             </td>
+         </tr>
+         <tr>
+             <td>
+             &nbsp;
+             &nbsp;
+             </td>
+         </tr>
+         <tr>
+             <td>
+             &nbsp;
+             &nbsp;
+             </td>
+         </tr>
+      </table>
+   </form>
+</body>
+</html>
+

Modified: webservices/axis/trunk/java/modules/core/html/TopFrame.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/TopFrame.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/TopFrame.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/TopFrame.jsp Wed Jun  1 21:23:22 2005
@@ -1,3 +1,28 @@
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Added: webservices/axis/trunk/java/modules/core/html/ViewGlobalHandlers.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/ViewGlobalHandlers.jsp?rev=179504&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/ViewGlobalHandlers.jsp (added)
+++ webservices/axis/trunk/java/modules/core/html/ViewGlobalHandlers.jsp Wed Jun  1 21:23:22 2005
@@ -0,0 +1,154 @@
+<%@ page import="java.util.HashMap,
+                 org.apache.axis.Constants,
+                 java.util.Collection,
+                 java.util.Iterator,
+                 org.apache.axis.description.ModuleDescription,
+                 org.apache.axis.engine.AxisConfigurationImpl,
+                 java.util.ArrayList,
+                 org.apache.axis.engine.Phase,
+                 org.apache.axis.engine.Handler"%>
+ <%--
+ /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>View Global Handlers</title></head>
+  <body>
+   <%
+            AxisConfigurationImpl axisConfig = (AxisConfigurationImpl)request.getSession().
+                    getAttribute(Constants.GLOBAL_HANDLERS);
+             if(axisConfig != null ){
+                 ArrayList handlers ;
+                 ArrayList phases = axisConfig.getInPhasesUptoAndIncludingPostDispatch();
+                 %>
+                 <h3> In Flow upto and including dispatcher </h3>
+                 <hr>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name :  <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+                 phases = axisConfig.getInFaultFlow();
+                 %>
+                 <h3> In Fault Flow </h3>
+                 <hr>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name  : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+
+                 phases = axisConfig.getOutFlow();
+                 %>
+                 <h3> Out Flow </h3>
+                 <hr>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+                 phases = axisConfig.getOutFaultFlow();
+                 %>
+                 <h3> Out Fault Flow </h3>
+                 <hr>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+
+             }
+              %>
+
+  </body>
+</html>
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/core/html/ViewServiceHandlers.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/ViewServiceHandlers.jsp?rev=179504&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/ViewServiceHandlers.jsp (added)
+++ webservices/axis/trunk/java/modules/core/html/ViewServiceHandlers.jsp Wed Jun  1 21:23:22 2005
@@ -0,0 +1,158 @@
+<%@ page import="org.apache.axis.engine.AxisConfigurationImpl,
+                 org.apache.axis.Constants,
+                 java.util.ArrayList,
+                 org.apache.axis.engine.Phase,
+                 org.apache.axis.engine.Handler,
+                 org.apache.axis.description.ServiceDescription,
+                 java.util.HashMap,
+                 java.util.Collection,
+                 java.util.Iterator,
+                 org.apache.axis.description.OperationDescription"%>
+  <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head><title>Simple jsp page</title></head>
+  <body> <body>
+   <%
+            ServiceDescription service = (ServiceDescription)request.getSession().
+                    getAttribute(Constants.SERVICE_HANDLERS);
+             if(service != null ){
+                 ArrayList handlers ;
+                HashMap operations =  service.getOperations();
+                Collection ops = operations.values();
+                 for (Iterator iterator = ops.iterator(); iterator.hasNext();) {
+                     OperationDescription description = (OperationDescription) iterator.next();
+                     %><h2>Operation Name : <%=description.getName().getLocalPart()%></h2><%
+                     ArrayList phases = description.getRemainingPhasesInFlow();
+                 %>
+                 <h3> In Flow </h3>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name :  <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+                 phases = description.getPhasesInFaultFlow();
+                 %>
+                 <h3> In Fault Flow </h3>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name  : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+
+                 phases = description.getPhasesOutFlow();
+                 %>
+                 <h3> Out Flow </h3>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+                 phases = description.getPhasesOutFaultFlow();
+                 %>
+                 <h3> Out Fault Flow </h3>
+                 <ul>
+                 <%
+                 for (int i = 0; i < phases.size(); i++) {
+                     Phase phase = (Phase) phases.get(i);
+                     %>
+                     <li>Phase Name : <%=phase.getPhaseName()%></li>
+                     <ul>
+                     <%
+                      handlers = phase.getHandlers();
+                      for (int j = 0; j < handlers.size(); j++) {
+                          Handler handler = (Handler) handlers.get(j);
+                          %>
+                          <li>Handler Name : <%=handler.getHandlerDesc().getName().getLocalPart()%></li>
+                          <%
+                      }
+                     %>
+                     </ul>
+                 <%
+                 }
+                 %>
+                 </ul>
+                 <%
+
+             }
+                 }
+
+              %>
+
+  </body>
+</html>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/core/html/admin.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/admin.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/admin.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/admin.jsp Wed Jun  1 21:23:22 2005
@@ -1,21 +1,29 @@
 <%@ page import="org.apache.axis.Constants"%>        <%@ page contentType="text/html;charset=UTF-8" language="java" %>
         <html>
         <%
-            /*
-            * Copyright 2002,2004 The Apache Software Foundation.
-            *
-            * Licensed under the Apache License, Version 2.0 (the "License");
-            * you may not use this file except in compliance with the License.
-            * You may obtain a copy of the License at
-            *
-            *      http://www.apache.org/licenses/LICENSE-2.0
-            *
-            * Unless required by applicable law or agreed to in writing, software
-            * distributed under the License is distributed on an "AS IS" BASIS,
-            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-            * See the License for the specific language governing permissions and
-            * limitations under the License.
-            */
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
         %>
         <head>
 <title>Axis2 :: Administrations Page</title>
@@ -23,8 +31,8 @@
 
 <frameset rows="200,*" frameborder="NO" border="0" framespacing="0">
 <frame src="TopFrame.jsp" name="topFrame" scrolling="NO"  >
-<frameset rows="*" cols="245,*" framespacing="0" frameborder="NO" border="0">
-<frame src="LeftFrame.jsp" name="leftFrame"  border="0" scrolling="NO"  noresize>
+<frameset rows="*" cols="300,*" framespacing="0" frameborder="NO" border="0">
+<frame src="LeftFrame.jsp" name="leftFrame"  border="0" noresize>
 <frame src="MainFrame.jsp"  border="0" name="mainFrame">
 </frameset>
 </frameset>

Modified: webservices/axis/trunk/java/modules/core/html/engagingglobally.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/engagingglobally.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/engagingglobally.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/engagingglobally.jsp Wed Jun  1 21:23:22 2005
@@ -1,3 +1,29 @@
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
+
 <%@ page import="java.util.Collection,
                  org.apache.axis.Constants,
                  java.util.Iterator,

Modified: webservices/axis/trunk/java/modules/core/html/globalModules.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/globalModules.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/globalModules.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/globalModules.jsp Wed Jun  1 21:23:22 2005
@@ -1,3 +1,28 @@
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
 <%@ page import="org.apache.axis.Constants,
                  org.apache.axis.description.ServiceDescription,
                  org.apache.axis.description.OperationDescription,

Modified: webservices/axis/trunk/java/modules/core/html/index.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/index.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/index.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/index.jsp Wed Jun  1 21:23:22 2005
@@ -2,7 +2,7 @@
 <html>
 <%
 /*
-* Copyright 2002,2004 The Apache Software Foundation.
+* Copyright 2004,2005 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -15,7 +15,15 @@
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
+*
+*
 */
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
 %>
 <head>
 <title>Axis 2 - Home</title>
@@ -42,10 +50,10 @@
         <br/>
         You can upload a properly packaged service here. Note : Security constraints may affect this operation.
         </li>
-        <li><a href="interop.jsp">Do an interop test</a>
+        <%--<li><a href="interop.jsp">Do an interop test</a>
         <br/>
         You can run Interoperability tests here
-        </li>
+        </li>--%>
         <li><a href="Loging.jsp">Axis2 Administration</a>
         <br/>
         </li>

Modified: webservices/axis/trunk/java/modules/core/html/listModules.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/listModules.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/listModules.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/listModules.jsp Wed Jun  1 21:23:22 2005
@@ -1,3 +1,28 @@
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
 <%@ page import="org.apache.axis.Constants,
                  org.apache.axis.description.ServiceDescription,
                  org.apache.axis.description.OperationDescription,

Modified: webservices/axis/trunk/java/modules/core/html/listService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/listService.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/listService.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/listService.jsp Wed Jun  1 21:23:22 2005
@@ -3,23 +3,31 @@
                  org.apache.axis.description.ServiceDescription,
                  org.apache.axis.description.OperationDescription,
                  org.apache.axis.description.ModuleDescription"%>
- <%--
-    /*
- * Copyright 2002,2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+  <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
  */
---%>
+        %>
 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 <html>
   <head><title>List Services</title>

Modified: webservices/axis/trunk/java/modules/core/html/viewphases.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/html/viewphases.jsp?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/html/viewphases.jsp (original)
+++ webservices/axis/trunk/java/modules/core/html/viewphases.jsp Wed Jun  1 21:23:22 2005
@@ -1,6 +1,28 @@
-<%--
-author : Deepal Jayasinghe
---%>
+ <%
+           /*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: May 26, 2005
+ * Time: 7:14:26 PM
+ */
+        %>
 <%@ page import="org.apache.axis.Constants,
                  org.apache.axis.description.ServiceDescription,
                  org.apache.axis.description.ModuleDescription,

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/Constants.java?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/Constants.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/Constants.java Wed Jun  1 21:23:22 2005
@@ -107,6 +107,10 @@
 
     public static final String ADMIN_LOGGING = "adminloging";
 
+    public static final String VIEW_GLOBAL_HANDLERS = "viewGlobalHandlers";
+    public static final String SELECT_SERVICE = "selectService";
+    public static final String VIEW_SERVICE_HANDLERS = "viewServiceHandlers";
+
     /**
      * Field SERVICE_MAP
      */
@@ -115,6 +119,9 @@
      * Field Available modules
      */
     public static final String MODULE_MAP = "modulemap";
+
+    public static final String GLOBAL_HANDLERS = "axisconfig";
+    public static final String SERVICE_HANDLERS = "serviceHandlers";
 
     public static final String PHASE_LIST = "phaseList";
 

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfiguration.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfiguration.java?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfiguration.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfiguration.java Wed Jun  1 21:23:22 2005
@@ -108,7 +108,7 @@
      */
     public ArrayList getInPhasesUptoAndIncludingPostDispatch();
 
-    public ArrayList getPhasesInOutFaultFlow();
+    public ArrayList getInFaultFlow();
     /**
      * Method getServices
      *

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfigurationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfigurationImpl.java?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfigurationImpl.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/AxisConfigurationImpl.java Wed Jun  1 21:23:22 2005
@@ -62,7 +62,6 @@
     private ArrayList outFaultPhases;
 
     private ArrayList inPhasesUptoAndIncludingPostDispatch;
-    private ArrayList faultPhases;
 
 
 
@@ -217,10 +216,6 @@
         return transportsOut;
     }
 
-    public ArrayList getFaultPhases() {
-        return null;  //To change body of implemented methods use File | Settings | File Templates.
-    }
-
     /**
      * Method getTransports
      *
@@ -242,10 +237,6 @@
 
     public ArrayList getInPhasesUptoAndIncludingPostDispatch() {
         return inPhasesUptoAndIncludingPostDispatch;
-    }
-
-    public ArrayList getPhasesInOutFaultFlow() {
-        return faultPhases;
     }
 
     public ArrayList getOutFlow() {

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java?rev=179504&r1=179503&r2=179504&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java Wed Jun  1 21:23:22 2005
@@ -73,6 +73,9 @@
     private static final String LIST_SRVICES_JSP_NAME =
             "listService.jsp";
 
+     private static final String SELECT_SERVICE_JSP_NAME =
+            "SelectService.jsp";
+
     private static final String ADMIN_JSP_NAME =
             "admin.jsp";
 
@@ -98,7 +101,10 @@
      */
     private static final String LIST_SINGLE_SERVICE_JSP_NAME =
             "listSingleService.jsp";
-
+    private static final String VIEW_GLOBAL_HANDLERS_JSP_NAME =
+            "ViewGlobalHandlers.jsp";
+     private static final String VIEW_SERVICE_HANDLERS_JSP_NAME =
+            "ViewServiceHandlers.jsp";
 
     /**
      * Field allowListServices
@@ -171,6 +177,18 @@
                 && filePart.endsWith(Constants.ADMIN_LOGGING)){
             adminLogging(httpServletRequest, httpServletResponse);
             return;
+        } else if ((filePart != null)
+                && filePart.endsWith(Constants.VIEW_GLOBAL_HANDLERS)){
+            viewGlobalHandlers(httpServletRequest, httpServletResponse);
+            return;
+        } else if ((filePart != null)
+                && filePart.endsWith(Constants.SELECT_SERVICE)){
+            selectService(httpServletRequest, httpServletResponse);
+            return;
+        }  else if ((filePart != null)
+                && filePart.endsWith(Constants.VIEW_SERVICE_HANDLERS)){
+            viewServiceHandlers(httpServletRequest, httpServletResponse);
+            return;
         }
 
 
@@ -301,6 +319,13 @@
                 engineContext.getAxisConfiguration().getFaulytServices());
         res.sendRedirect(LIST_SRVICES_JSP_NAME);
     }
+
+     private void selectService(HttpServletRequest req, HttpServletResponse res)
+            throws IOException {
+        HashMap services = engineContext.getAxisConfiguration().getServices();
+        req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+        res.sendRedirect(SELECT_SERVICE_JSP_NAME);
+    }
     private void adminLogging(HttpServletRequest req, HttpServletResponse res)
             throws IOException {
         String username = req.getParameter("userName");
@@ -378,6 +403,25 @@
         req.getSession().setAttribute(Constants.MODULE_MAP, modules);
         res.sendRedirect(LIST_GLOABLLY_ENGAGED_MODULES_JSP_NAME);
     }
+
+
+    private void viewGlobalHandlers(HttpServletRequest req, HttpServletResponse res)
+            throws IOException {
+        req.getSession().setAttribute(Constants.GLOBAL_HANDLERS, engineContext.getAxisConfiguration());
+        res.sendRedirect(VIEW_GLOBAL_HANDLERS_JSP_NAME);
+    }
+
+    private void viewServiceHandlers(HttpServletRequest req, HttpServletResponse res)
+               throws IOException {
+           String service = (String)req.getParameter("service");
+        if (service!= null) {
+            req.getSession().setAttribute(Constants.SERVICE_HANDLERS,
+                    engineContext.getAxisConfiguration().getService(new QName(service)) );
+        }
+        res.sendRedirect(VIEW_SERVICE_HANDLERS_JSP_NAME);
+       }
+
+
 
     private void listPhases(HttpServletRequest req, HttpServletResponse res)
             throws IOException {



Mime
View raw message