first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,82 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisService,
java.util.Collection,
java.util.HashMap,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Turn On Service</h1>
<form method="get" name="serviceActivate" action="axis2-admin/activateService">
<table width="100%" border="0">
<tr>
<td colspan="2" >
<p>The services that are inactive are listed below. Although you can activate the services from this page, once system is restarted the services will be inactive again</p>
</td>
</tr>
<tr>
<%
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
Collection col = services.values();
String html = "";
int count = 0;
for (Iterator iterator = col.iterator(); iterator.hasNext();) {
AxisService axisServices = (AxisService) iterator.next();
if(!axisServices.isActive()){
count++;
html += "<option value='" + axisServices.getName() + "'>";
html += axisServices.getName() + "</option>";
}
}
request.getSession().setAttribute(Constants.SERVICE_MAP,null);
if (count > 0) {
%>
<td width="20%"> Select Service : </td>
<td width="80%">
<select name="axisService" class="selectBoxes">
<%=html%>
</select>
</tr>
<tr>
<td width="20%">Activate Service </td>
<td width="80%"><input type="checkbox" name="turnon">
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input name="submit" type="submit" value=" Activate " >
<input name="reset" type="reset" value=" Clear " >
</td>
<%
} else {
%>
<td colspan="2">No inactive services present.</td>
<%
}
%>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,138 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
org.apache.axis2.description.AxisServiceGroup,
java.util.Collection" %>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="org.apache.axis2.util.Utils" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP,null);
Collection moduleCol = moduels.values();
Iterator servicesGroups = (Iterator)request.getSession().getAttribute(Constants.SERVICE_GROUP_MAP);
request.getSession().setAttribute(Constants.SERVICE_GROUP_MAP,null);
%>
<h1>Engage Module for a Service Group</h1>
<p>To engage a module for a set of services grouped as an axis service group,</p>
<ol>
<li>select the module you want to engage </li>
<li>select the axis service group you like the module to be engaged.</li>
<li>click "Engage".</li>
</ol>
<%
if (!moduleCol.iterator().hasNext()) {%>
<p>No modules are present to be engaged.</p>
<%} else {
if (!servicesGroups.hasNext()) {%>
<p>No Axis service groups are present to be engaged.</p>
<%} else {
%>
<form method="get" name="selectModuleForm" action="axis2-admin/engageToServiceGroup">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td>Select a Module :</td>
</tr>
<tr>
<td>
<select name="modules">
<%
for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
String modulename = axisOperation.getName();
%> <option align="left" value="<%=modulename%>"><%=modulename%></option>
<%
}
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select a Service Group :</td>
</tr>
<tr>
<td>
<select name="axisService">
<%
while(servicesGroups.hasNext()){
AxisServiceGroup axisServiceGroup = (AxisServiceGroup) servicesGroups.next();
String serviceName = axisServiceGroup.getServiceGroupName();
%> <option align="left" value="<%=serviceName%>"><%=serviceName%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value=" Engage " >
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<textarea cols="50" <%
if(status == null){
%>
style="display:none"
<%
} %>
><%=Utils.sanitizeWebOutput(status)%></textarea>
</td>
</tr>
</table>
</form>
<%
}
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,44 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<html>
<head><title>Error In Admin Application</title></head>
<body>
<table width="100%">
<tr>
<td align="left"><img src="../images/asf-logo.gif"/></td>
<td align="right"><img src="../images/axis_l.jpg"/></td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">Failure in Authentication! Please check your username and password</td>
</tr>
<tr> <td align="center"><a href="/axis2/Login.jsp">back</a></td></tr>
</table>
<hr/>
<table width="100%">
<tr>
<td align="center">All rights reserved by Apache Software Foundation</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,44 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<html>
<head><title>Error In Admin Application</title></head>
<body>
<table width="100%">
<tr>
<td align="left"><img src="../images/asf-logo.gif"/></td>
<td align="right"><img src="../images/axis_l.jpg"/></td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">Server Encountered an Error!</td>
</tr>
<tr> <td align="center"><a href="/">home</a></td></tr>
</table>
<hr/>
<table width="100%">
<tr>
<td align="center">All rights reserved by Apache Software Foundation</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,63 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=iso-8859-1" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<jsp:include page="../include/httpbase.jsp"/>
<title>Axis2 :: Resource not found!</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<table width="100%">
<tr>
<td align="left"><img src="axis2-web/images/asf-logo.gif" alt=""/></td>
<td align="right"><img src="axis2-web/images/axis_l.jpg" alt=""/></td>
</tr>
</table>
<table width="100%">
<tr>
<td>
<h1>Requested resource not found!</h1>
<br/>
<br/>
<br/>
<br/>
</td>
</tr>
<tr><td align="center"><a href="axis2-web/index.jsp">home</a></td></tr>
</table>
<table width="100%">
<tr><td>
<table width="950px">
<tr><td><hr size="1" noshade=""/></td></tr>
<tr>
<td align="center">Copyright &#169; 1999-2006, The Apache Software Foundation<br/>Licensed under the <a
href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,64 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=iso-8859-1" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<jsp:include page="../include/httpbase.jsp"/>
<title>Axis2 :: Internal server error</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<table width="100%">
<tr>
<td align="left"><img src="axis2-web/images/asf-logo.gif" alt=""/></td>
<td align="right"><img src="axis2-web/images/axis_l.jpg" alt=""/></td>
</tr>
</table>
<table width="100%">
<tr>
<td>
<h1>Internal server error</h1>
<br/>
<br/>
<br/>
<br/>
</td>
</tr>
<tr><td align="center"><a href="axis2-web/index.jsp">home</a></td></tr>
</table>
<hr/>
<table width="100%">
<tr><td>
<table width="950px">
<tr><td><hr size="1" noshade=""/></td></tr>
<tr>
<td align="center">Copyright &#169; 1999-2006, The Apache Software Foundation<br/>Licensed under the <a
href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,508 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<html>
<%@ page import="org.apache.axis2.AxisFault,
org.apache.axis2.Constants,
org.apache.axis2.addressing.EndpointReference,
org.apache.axis2.client.Options,
org.apache.axis2.client.ServiceClient,
org.apache.axis2.context.ConfigurationContext,
org.apache.axis2.context.ConfigurationContextFactory,
javax.xml.parsers.SAXParser,
javax.xml.parsers.SAXParserFactory,
java.io.IOException,
java.io.InputStream,
java.io.StringWriter,
org.apache.axiom.om.OMElement,
org.apache.axiom.om.OMFactory,
org.apache.axiom.om.OMNamespace,
org.apache.axiom.om.OMAbstractFactory,
javax.xml.stream.XMLOutputFactory,
javax.xml.stream.XMLStreamException"
session="false" %>
<head>
<jsp:include page="include/httpbase.jsp"/>
<title>Axis2 Happiness Page</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
</head>
<body>
<jsp:include page="include/header.inc"/>
<jsp:include page="include/link-footer.jsp"/>
<%IP = request.getRequestURL().toString();%>
<%!
/*
* Happiness tests for axis2. These look at the classpath and warn if things
* are missing. Normally addng this much code in a JSP page is mad
* but here we want to validate JSP compilation too, and have a drop-in
* page for easy re-use
*/
String IP;
/**
* Get a string providing install information.
* TODO: make this platform aware and give specific hints
*/
public String getInstallHints(HttpServletRequest request) {
return "<B><I>Note:</I></B> On Tomcat 4.x and Java1.4, you may need to put libraries that contain "
+ "java.* or javax.* packages into CATALINA_HOME/common/lib"
+ "<br>jaxrpc.jar and saaj.jar are two such libraries.";
}
/**
* test for a class existing
* @param classname
* @return class iff present
*/
Class classExists(String classname) {
try {
return Class.forName(classname);
} catch (ClassNotFoundException e) {
return null;
}
}
/**
* test for resource on the classpath
* @param resource
* @return true iff present
*/
boolean resourceExists(String resource) {
boolean found;
InputStream instream = this.getClass().getResourceAsStream(resource);
found = instream != null;
if (instream != null) {
try {
instream.close();
} catch (IOException e) {
}
}
return found;
}
/**
* probe for a class, print an error message is missing
* @param out stream to print stuff
* @param category text like "warning" or "error"
* @param classname class to look for
* @param jarFile where this class comes from
* @param errorText extra error text
* @param homePage where to d/l the library
* @return the number of missing classes
* @throws IOException
*/
int probeClass(JspWriter out,
String category,
String classname,
String jarFile,
String axisOperation,
String errorText,
String homePage) throws IOException {
try {
Class clazz = classExists(classname);
if (clazz == null) {
String url = "";
if (homePage != null) {
url = "<br> See <a href=" + homePage + ">" + homePage + "</a>";
}
out.write("<p>" + category + ": could not find class " + classname
+ " from file <b>" + jarFile
+ "</b><br> " + errorText
+ url
+ "<p>");
return 1;
} else {
String location = getLocation(out, clazz);
if (location == null) {
out.write("Found " + axisOperation + " (" + classname + ")<br/>");
} else {
out.write("Found " + axisOperation + " (" + classname + ") <br/> &nbsp;&nbsp;at " + location + "<br/>");
}
return 0;
}
} catch (NoClassDefFoundError ncdfe) {
String url = "";
if (homePage != null) {
url = "<br> See <a href=" + homePage + ">" + homePage + "</a>";
}
out.write("<p>" + category + ": could not find a dependency"
+ " of class " + classname
+ " from file <b>" + jarFile
+ "</b><br> " + errorText
+ url
+ "<br>The root cause was: " + ncdfe.getMessage()
+ "<br>This can happen e.g. if " + classname + " is in"
+ " the 'common' classpath, but a dependency like "
+ " activation.jar is only in the webapp classpath."
+ "<p>");
return 1;
}
}
/**
* get the location of a class
* @param out
* @param clazz
* @return the jar file or path where a class was found
*/
String getLocation(JspWriter out,
Class clazz) {
try {
java.net.URL url = clazz.getProtectionDomain().getCodeSource().getLocation();
String location = url.toString();
if (location.startsWith("jar")) {
url = ((java.net.JarURLConnection) url.openConnection()).getJarFileURL();
location = url.toString();
}
if (location.startsWith("file")) {
java.io.File file = new java.io.File(url.getFile());
return file.getAbsolutePath();
} else {
return url.toString();
}
} catch (Throwable t) {
}
return "an unknown location";
}
/**
* a class we need if a class is missing
* @param out stream to print stuff
* @param classname class to look for
* @param jarFile where this class comes from
* @param errorText extra error text
* @param homePage where to d/l the library
* @throws IOException when needed
* @return the number of missing libraries (0 or 1)
*/
int needClass(JspWriter out,
String classname,
String jarFile,
String axisOperation,
String errorText,
String homePage) throws IOException {
return probeClass(out,
"<b>Error</b>",
classname,
jarFile,
axisOperation,
errorText,
homePage);
}
/**
* print warning message if a class is missing
* @param out stream to print stuff
* @param classname class to look for
* @param jarFile where this class comes from
* @param errorText extra error text
* @param homePage where to d/l the library
* @throws IOException when needed
* @return the number of missing libraries (0 or 1)
*/
int wantClass(JspWriter out,
String classname,
String jarFile,
String axisOperation,
String errorText,
String homePage) throws IOException {
return probeClass(out,
"<b>Warning</b>",
classname,
jarFile,
axisOperation,
errorText,
homePage);
}
/**
* probe for a resource existing,
* @param out
* @param resource
* @param errorText
* @throws Exception
*/
int wantResource(JspWriter out,
String resource,
String errorText) throws Exception {
if (!resourceExists(resource)) {
out.write("<p><b>Warning</b>: could not find resource " + resource
+ "<br>"
+ errorText);
return 0;
} else {
out.write("found " + resource + "<br>");
return 1;
}
}
/**
* get servlet version string
*
*/
public String getServletVersion() {
ServletContext context = getServletConfig().getServletContext();
int major = context.getMajorVersion();
int minor = context.getMinorVersion();
return Integer.toString(major) + '.' + Integer.toString(minor);
}
/**
* what parser are we using.
* @return the classname of the parser
*/
private String getParserName() {
SAXParser saxParser = getSAXParser();
if (saxParser == null) {
return "Could not create an XML Parser";
}
// check to what is in the classname
return saxParser.getClass().getName();
}
/**
* Create a JAXP SAXParser
* @return parser or null for trouble
*/
private SAXParser getSAXParser() {
SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
if (saxParserFactory == null) {
return null;
}
SAXParser saxParser = null;
try {
saxParser = saxParserFactory.newSAXParser();
} catch (Exception e) {
}
return saxParser;
}
/**
* get the location of the parser
* @return path or null for trouble in tracking it down
*/
private String getParserLocation(JspWriter out) {
SAXParser saxParser = getSAXParser();
if (saxParser == null) {
return null;
}
return getLocation(out, saxParser.getClass());
}
private String value;
private OMElement createEnvelope() {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://axisversion.sample", "ns1");
OMElement method = fac.createOMElement("getVersion", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
method.addChild(value);
return method;
}
public boolean invokeTheService() {
try {
// since this one is an internal request we do not use public frontendHostUrl
// for it
int lastindex = IP.lastIndexOf('/');
IP = IP.substring(0, lastindex);
///axis2/axis2-web/services/version
IP = IP.replaceAll("axis2-web", "");
OMElement payload = createEnvelope();
ConfigurationContext configctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
ServiceClient client = new ServiceClient(configctx, null);
EndpointReference targetEPR = new EndpointReference(IP + configctx.getServicePath() + "/Version");
Options options = new Options();
client.setOptions(options);
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
OMElement result = client.sendReceive(payload);
StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(writer));
writer.flush();
value = writer.toString();
return true;
} catch (AxisFault axisFault) {
System.out.println(value);
return false;
} catch (XMLStreamException e) {
value = e.getMessage();
return false;
}
}
public String getFormatedSystemProperty(String systemProperty){
if (systemProperty == null)
return "";
return systemProperty.replaceAll(":", ": ");
}
%>
<h1>Axis2 Happiness Page</h1>
<h2>Examining webapp configuration</h2>
<blockquote>
<h4>Essential Components</h4>
<%
int needed = 0,wanted = 0;
/**
* the essentials, without these Axis is not going to work
*/
needed = needClass(out, "org.apache.axis2.transport.http.AxisServlet",
"axis2-1.0.jar",
"Apache-Axis",
"Axis2 will not work",
"http://xml.apache.org/axis2/");
needed += needClass(out, "org.apache.commons.logging.Log",
"commons-logging.jar",
"Jakarta-Commons Logging",
"Axis2 will not work",
"http://jakarta.apache.org/commons/logging.html");
needed += needClass(out, "javax.xml.stream.XMLStreamReader",
"stax-api-1.0.1.jar",
"Streaming API for XML",
"Axis2 will not work",
"http://dist.codehaus.org/stax/jars/");
needed += needClass(out, "org.codehaus.stax2.XMLStreamWriter2",
"wstx-asl-3.0.1.jar",
"Streaming API for XML implementation",
"Axis2 will not work",
"http://dist.codehaus.org/stax/jars/");
%>
<%
/*
* resources on the classpath path
*/
/* broken; this is a file, not a resource
wantResource(out,"/server-config.wsdd",
"There is no server configuration file;"
+"run AdminClient to create one");
*/
/* add more libraries here */
//is everything we need here
if (needed == 0) {
//yes, be happy
out.write("<p><font color='green'><strong>The core axis2 libraries are present.</strong></font></p>");
} else {
//no, be very unhappy
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
out.write("<font color='red'><i>"
+ needed
+ " core axis2 librar"
+ (needed == 1 ? "y is" : "ies are")
+ " missing</i></font>");
}
//now look at wanted stuff
%>
<p>
<B><I>Note:</I></B> Even if everything this page probes for is present,
there is no guarantee your Axis Service will work, because there are many configuration options
that we do not check for. These tests are <i>necessary</i> but not <i>sufficient</i>
</p>
</blockquote>
<h2>Examining Version Service</h2>
<%
boolean serviceStatus = invokeTheService();
if (serviceStatus) {
%>
<blockquote>
<font color="green"><strong>
Found Axis2 default Version service and Axis2 is working
properly.</strong></font>
<p>Now you can drop a service archive in axis2/WEB-INF/services.
Following output was produced while invoking Axis2 version service
</p>
<p><%= value%></p>
</blockquote>
<%
} else {
%>
<p>
<font color="brown"> There was a problem in Axis2 version service , may be
the service not available or some thing has gone wrong. But this does
not mean system is not working !
Try to upload some other service and check to see whether it is
working.
<br>
</font>
</p>
<%
}
%>
<h2>Examining Application Server</h2>
<blockquote>
<table>
<tr><td>Servlet version</td><td><%=getServletVersion()%></td></tr>
<tr><td>Platform</td>
<td><%=getServletConfig().getServletContext().getServerInfo()%></td>
</tr>
</table>
</blockquote>
<h2>Examining System Properties</h2>
<%
/**
* Dump the system properties
*/
java.util.Enumeration e = null;
try {
e = System.getProperties().propertyNames();
} catch (SecurityException se) {
}
if (e != null) {
out.write("<pre>");
out.write("<table cellpadding='5px' cellspacing='0px' style='border: .5px blue solid;'>");
for (; e.hasMoreElements();) {
out.write("<tr>");
String key = (String) e.nextElement();
out.write("<th style='border: .5px #A3BBFF solid;'>" + key + "</th>");
out.write("<td style='border: .5px #A3BBFF solid;'>" + getFormatedSystemProperty(System.getProperty(key)) + "&nbsp;</td>");
out.write("<tr>");
}
out.write("</table>");
out.write("</pre><p>");
} else {
out.write("System properties are not accessible<p>");
}
%>
<jsp:include page="include/footer.inc"/>
</body>
</html>

View File

@ -0,0 +1,83 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisService,
java.util.Collection,
java.util.HashMap,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Deactivate Service</h1>
<form method="get" name="serviceInActivate" action="axis2-admin/deactivateService">
<table width="100%" border="0">
<tr>
<td colspan="2" >
<p>Only the services that are active are listed below. Note that although you can activate a service from this page, once system is restarted the service will be active again</p>
</td>
</tr>
<tr>
<%
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
Collection col = services.values();
String html = "";
int count = 0;
for (Iterator iterator = col.iterator(); iterator.hasNext();) {
AxisService axisServices = (AxisService) iterator.next();
if(axisServices.isActive()){
count++;
html += "<option value='" + axisServices.getName() + "'>";
html += axisServices.getName() + "</option>";
}
}
request.getSession().setAttribute(Constants.SERVICE_MAP,null);
if (count > 0) {
%>
<td width="20%"> Select Service : </td>
<td width="80%">
<select name="axisService" class="selectBoxes">
<%=html%>
</select>
</td>
</tr>
<tr>
<td width="20%">Deactivate Service </td>
<td width="80%"><input type="checkbox" name="turnoff">
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input name="submit" type="submit" value=" Deactivate " >
<input name="reset" type="reset" value=" Clear " >
</td>
<%
} else {
%>
<td colspan="2">No active services present.</td>
<%
}
%>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,204 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
<%@ page import="org.apache.axis2.context.ServiceContext" %>
<%@ page import="org.apache.axis2.context.ServiceGroupContext" %>
<%@ page import="org.apache.axis2.deployment.util.PhasesInfo" %>
<%@ page import="org.apache.axis2.description.AxisModule" %>
<%@ page import="org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.AxisServiceGroup" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.engine.Handler" %>
<%@ page import="org.apache.axis2.engine.Phase" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<table width="100%" style="border-right:1px solid #CCCCCC;">
<tr>
<td colspan="2" >
<b>Tools </b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/upload">Upload Service</a>
</td>
</tr>
<tr>
<td colspan="2" >
<b><nobr>System Components&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</nobr></b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td >
<a href="axis2-admin/listService">Available Services</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td >
<a href="axis2-admin/listServiceGroups">Available Service Groups</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td >
<a href="axis2-admin/listModules">Available Modules</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/globalModules">Globally Engaged Modules</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td >
<a href="axis2-admin/listPhases">Available Phases</a>
</td>
</tr>
<tr>
<td colspan="2" >
<b>Execution Chains</b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/viewGlobalHandlers">Global Chains</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/selectService">Operation Specific Chains</a>
</td>
</tr>
<tr>
<td colspan="2" >
<b>Engage Module</b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/engagingglobally">For all Services</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/engageToServiceGroup">For a Service Group</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/engageToService">For a Service</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/listOperation">For an Operation</a>
</td>
</tr>
<tr>
<td colspan="2" >
<b>Services</b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/deactivateService">Deactivate Service</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/activateService">Activate Service</a>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/selectServiceParaEdit">Edit Parameters</a>
</td>
</tr>
<tr>
<td colspan="2" >
<b>Contexts</b>
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
<a href="axis2-admin/listContexts">View Hierarchy</a>
</td>
</tr>
</table>

View File

@ -0,0 +1,67 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.description.AxisModule" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.AxisServiceGroup" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<h1>Available Service Groups</h1>
<%
Iterator axisServiceGroupIter = (Iterator) request.getSession().getAttribute(
Constants.SERVICE_GROUP_MAP);
request.getSession().setAttribute(Constants.SERVICE_GROUP_MAP,null);
while (axisServiceGroupIter.hasNext()) {
AxisServiceGroup axisServiceGroup = (AxisServiceGroup) axisServiceGroupIter.next();
String groupName = axisServiceGroup.getServiceGroupName();
Collection modules = axisServiceGroup.getEngagedModules();
Iterator axisServiceIter = axisServiceGroup.getServices();
%>
<h2><%=groupName%></h2><ul>
<%
while (axisServiceIter.hasNext()){
AxisService axisService = (AxisService) axisServiceIter.next();
String serviceName = axisService.getName();
%>
<li><font color="blue"><a href="axis2-admin/ListSingleService?serviceName=<%=serviceName%>">
<%=serviceName%></a></font></li>
<%
}
%>
</ul>
<%
if (modules.size() > 0) {
%>
<I>Engaged modules</I><ul>
<%
for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
String modulDesc = axisOperation.getName();
%>
<li><%=modulDesc%></li>
<%
}
%></ul><%
}
}
%>
<jsp:include page="include/adminfooter.inc"/>

View File

@ -0,0 +1,90 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<jsp:include page="include/httpbase.jsp"/>
<title>Login to Axis2 :: Administration page</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
</head>
<body onload="javascript:document.LoginForm.userName.focus();">
<jsp:include page="include/header.inc"/>
<jsp:include page="include/link-footer.jsp"/>
<table class="FULL_BLANK">
<tr>
<td valign="top">
<h2>Welcome :</h2>
<p>Welcome to the Axis2 administration console. From inside the Axis2 administration console you can :</p>
<ul style="list-style: none;" class="loginUL">
<li>Check on the health of your Axis2 deployment.</li>
<li>Change any parameters at run time.</li>
<li>Upload new services into Axis2 [Service hot-deployment].</li>
</ul>
<font color="orange">Warning: Please note that configuration changes done through the administration console
will be lost when the server is restarted.</font>
</td>
<td valign="top" align="left">
<form method="post" name="LoginForm" action="axis2-admin/login">
<table class="LOG_IN_FORM">
<tr>
<td align="center" colspan="2" bgcolor="#b0b0b0" color="#FFFFFF"><font color="#FFFFFF">Login</font></td>
</tr>
<tr>
<td align="center" colspan="2">&nbsp;</td>
</tr>
<tr>
<td align="right">Username:</td>
<td><input align="left" type="text" name="userName" tabindex="1">
</td>
</tr>
<tr>
<td align="right">Password : </td>
<td><input align="left" type="password" name="password" tabindex="2">
</td>
</tr>
<tr>
<td colspan="2">
<br>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input name="cancel" type="reset" value=" Clear "> &nbsp; &nbsp;
<input name="submit" type="submit" value=" Login ">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<font color="red">&nbsp;<% if (request.getAttribute("errorMessage") != null) {%><%= request.getAttribute("errorMessage")%><% } %>&nbsp;</font>
</td>
</tr>
</table>
</form>
<br/><br/><br/><br/><br/><br/>
</td>
</tr>
</table>
<p>Test</p>
<jsp:include page="include/footer.inc"/>
</body>
</html>

View File

@ -0,0 +1,29 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Axis2 Administration </title>
<style type="text/css">
</style></head>
<body>
</body>
</html>

View File

@ -0,0 +1,79 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisService,
java.util.Collection,
java.util.HashMap,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
String action ="";
String buttonName="" ;
String status = (String)request.getSession().getAttribute(Constants.SELECT_SERVICE_TYPE);
String heading = "";
String disc = "";
if(status != null && status.equals("MODULE")) {
action = "listOperations";
buttonName = " View Operations";
heading = "Select a service to view operation specific chains";
disc = "Select an Axis service from the combo and click on the 'View Operations' button to view operation specific Chains.";
} else if(status != null && status.equals("VIEW")){
buttonName = " View ";
action = "viewServiceHandlers";
heading = "Select a service to view service handlers";
disc = "Select an Axis service from the combo and click on the 'View' button to view service handlers.";
} else if (status != null && status.equals("SERVICE_PARAMETER")){
buttonName = " Edit Parameters ";
action = "editServicePara"; // Constants.EDIR_SERVICE_PARA;
heading = "Select a Service to Edit Parameters";
disc = "Select an Axis service from the combo and click on the 'Edit Parameters' button to edit parameters.";
}
%>
<h1><%=heading%></h1>
<p><%=disc%></p>
<form method="get" name="selectServiceForm" action="axis2-admin/<%=action%>">
<table border="0" width="50%" cellspacing="1" cellpadding="1">
<tr>
<td width="35%">Select a Service :</td><td width="65%">
<select name="axisService">
<%
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
Collection serviceCol = services.values();
for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
AxisService axisService = (AxisService)iterator.next();
String serviceName = axisService.getName();
%> <option align="left" value="<%=serviceName%>"><%=serviceName%></option>
<%
}
request.getSession().setAttribute(Constants.SERVICE_MAP,null);
%>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td>&nbsp;</td>
<td colspan="2" align="left">
<input name="submit" type="submit" value="<%=buttonName%>" >
</td>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,122 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisOperation,
org.apache.axis2.description.AxisService,
org.apache.axis2.description.Parameter,
java.util.ArrayList,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Edit Service Parameters</h1>
<form method="get" name="editServicepara" action="axis2-admin/editServicepara">
<%
AxisService axisService = (AxisService)request.getSession().
getAttribute(Constants.SERVICE);
if(axisService != null ){
%> <table width="100%">
<tr>
<td colspan="2" ><b>
<%
String servicName = axisService.getName();
%>Service Parameters :: <%=servicName%>
</b></td>
</tr>
<tr>
<td colspan="2" ><input style="display:none" name="axisService" value="<%=servicName%>"></td>
</tr>
<%
ArrayList service_para = axisService.getParameters();
for (int i = 0; i < service_para.size(); i++) {
Parameter parameter = (Parameter) service_para.get(i);
if (parameter.getParameterType()==Parameter.OM_PARAMETER) {
continue;
}
%>
<tr>
<td><%=parameter.getName()%></td>
<td><input type="text" value="<%=parameter.getValue()%>"
name="<%=(servicName + "_" + parameter.getName())%>" size="50">
</td>
</tr>
<%
}
Iterator operations = axisService.getOperations();
if(operations.hasNext()){
%>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td colspan="2" > <b>Operation Paramaters :: </b>
</td>
</tr>
<%
}
ArrayList op_paras ;
operations = axisService.getOperations();
while (operations.hasNext()) {
AxisOperation axisOperation = (AxisOperation) operations.next();
String operationName = axisOperation.getName().getLocalPart();
%>
<tr>
<td colspan="2" > &nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
<tr>
<td colspan="2" ><b>Operation : <%=operationName%></b></td>
</tr>
<%
op_paras = axisOperation.getParameters();
for (int i = 0; i < op_paras.size(); i++) {
Parameter parameter = (Parameter) op_paras.get(i);
if (parameter.getParameterType()==Parameter.OM_PARAMETER) {
continue;
}
%>
<tr>
<td><%=parameter.getName()%></td>
<td><input type="text" value="<%=parameter.getValue()%>"
name="<%=(operationName + "_" + parameter.getName())%>" size="50">
</td>
</tr>
<%
}
}
%>
<tr>
<td>&nbsp;</td>
<td>
<input name="changePara" type="submit" value=" Change " >
</td>
</tr>
</table>
<%
} else {
%>
<p><%=request.getAttribute("status")%></p>
<%
}
%>
<form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,30 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
</style></head>
<body>
<jsp:include page="include/adminheader.inc"/>
</body>
</html>

View File

@ -0,0 +1,64 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants"%>
<%@ page import="org.apache.axis2.context.ConfigurationContext"%>
<%@ page import="org.apache.axis2.context.ServiceContext"%>
<%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
<%@ page import="java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Running Context Hierarchy</h1>
<%
ConfigurationContext configContext = (ConfigurationContext) request.getSession().getAttribute(
Constants.CONFIG_CONTEXT);
String[] serviceGroupIds = configContext.getServiceGroupContextIDs();
if (serviceGroupIds.length > 0) {
%>
<ul>
<%
for (int i = 0; i < serviceGroupIds.length; i++) {
String groupContextID = serviceGroupIds[i];
ServiceGroupContext groupContext = configContext.getServiceGroupContext(groupContextID);
%>
<li><%=groupContextID%><font color="blue"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=VIEW&ID=<%=groupContextID%>">
View</a></font> <font color="red"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=DELETE&ID=<%=groupContextID%>">
Remove</a> </font></li>
<%
Iterator serviceContextItr = groupContext.getServiceContexts();
%><ul><%
while (serviceContextItr.hasNext()) {
ServiceContext serviceContext = (ServiceContext)serviceContextItr.next();
String serviceConID = serviceContext.getAxisService().getName();
%>
<li><%=serviceConID%><font color="blue"><a href="axis2-admin/viewServiceContext?TYPE=VIEW&ID=<%=serviceConID%>&PID=<%=groupContextID%>">
View</a></font></li>
<%
}
%></ul><hr><%
}
%> </ul>
<%
} else {%>
<p>No running contexts were found on the system.</p>
<%}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,137 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.engine.AxisConfiguration,
org.apache.axis2.engine.Handler,
org.apache.axis2.engine.Phase,
java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>View Global Execution Chains</h1>
<%
AxisConfiguration axisConfig = (AxisConfiguration)request.getSession().
getAttribute(Constants.GLOBAL_HANDLERS);
if(axisConfig != null ){
List handlers ;
List phases = axisConfig.getInFlowPhases();
%>
<h3> In Flow Up To and Including Dispatcher </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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisConfig.getInFaultFlowPhases();
%>
<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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisConfig.getOutFlowPhases();
%>
<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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisConfig.getOutFaultFlowPhases();
%>
<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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,147 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisOperation,
org.apache.axis2.description.AxisService,
org.apache.axis2.engine.Handler,
org.apache.axis2.engine.Phase,
java.util.ArrayList,
java.util.List,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>View Operation Specific Chains</h1>
<%
AxisService axisService = (AxisService)request.getSession().
getAttribute(Constants.SERVICE_HANDLERS);
if(axisService != null ){
List handlers ;
Iterator operations = axisService.getOperations();
while (operations.hasNext()) {
AxisOperation axisOperationon = (AxisOperation) operations.next();
%><h2>Operation Name : <%=axisOperationon.getName().getLocalPart()%></h2><%
ArrayList phases = axisOperationon.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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisOperationon.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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisOperationon.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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
phases = axisOperationon.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()%></li>
<%
}
%>
</ul>
<%
}
%>
</ul>
<%
}
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,31 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Welcome to Axis2 Web Admin Module !!</h1>
<p>You are now logged into the Axis2 administration console from inside
the console you will be able to</p>
<ul>
<li>to check on the health of your Axis2 deployment.</li>
<li>to change any parameters at run time.</li>
<li>to upload new services into Axis2 [Service hot-deployment].</li>
</ul>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,50 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
BODY {
background-color : "#FFFFFF";
leftmargin:"0";
topmargin:"0";
font-family:Arial;
font-size:11pt;
}
h1 { font-family: Arial; font-size: 16pt; font-weight: bold }
h2 { font-family: Arial; font-size: 13pt; font-weight: bold; color: #5D0D7D }
ul { font-family: Arial; font-size: 11pt }
input { font-family: Arial; font-size: 8pt; font-weight: bold }
td { font-family: Arial; font-size: 10pt }
h3 { font-family: Arial; font-size: 12pt; font-weight:bold }
TABLE.FULL_BLANK {
width : 100%;
height : 100%;
border : 0;
padding : 0;
}
TABLE.LOG_IN_FORM{
height: 200px%;
border:1px solid #000000;
width: 300px%;
cellspacing:1px;
cellpadding:1px;
background-color: #f7f7f7 ;
}
UL.loginUL LI{
padding: 10pt;
}

View File

@ -0,0 +1,23 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<p><%=request.getSession().getAttribute("status")%></p>
<p>Click <a href="services/listServices">here</a> to go to the service list page</p>
<jsp:include page="include/adminfooter.inc" />

View File

@ -0,0 +1,22 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<%=request.getSession().getAttribute("status")%>
<jsp:include page="include/adminfooter.inc" />

View File

@ -0,0 +1,72 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
java.util.Collection,
java.util.HashMap,
java.util.Iterator" %>
<%@ page import="org.apache.axis2.util.Utils" %>
<html>
<jsp:include page="include/adminheader.jsp"/>
<%
String status = (String) request.getSession().getAttribute(Constants.ENGAGE_STATUS);
%>
<h1>Engage Module Globally</h1>
<p>To engage a module on all services across the system, select a module from the combo box below
and click on the "Engage" button. Any module that needs to place handlers into the pre-dispatch
phase needs to be engaged globally.</p>
<form method="get" name="selectModuleForm" action="axis2-admin/engagingglobally">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td width="15%">Select a Module :</td>
<td width="75%" align="left">
<select name="modules">
<%
HashMap modules = (HashMap) request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP,null);
Collection moduleCol = modules.values();
for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
String modulename = axisOperation.getName();
%>
<option align="left" value="<%=modulename%>"><%=modulename%>
</option>
<%
}
%>
</select>
</td>
</tr>
<tr><td>&nbsp;</td>
<td>
<input name="submit" type="submit" value=" Engage ">
</td>
</tr>
</table>
</form>
<%
if (status != null) {
%>
<p style="color:blue"><%=Utils.sanitizeWebOutput(status)%></p>
<%
} %>
<jsp:include page="include/adminfooter.inc"/>

View File

@ -0,0 +1,126 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
org.apache.axis2.description.AxisOperation,
org.apache.axis2.util.Utils,
java.util.Collection,
java.util.HashMap,
java.util.Iterator"%>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
%>
<h1>Engage Module for an Operation</h1>
<p>To engage a module for an axis operation,</p>
<ol>
<li>select the module you want to engage </li>
<li>select the axis operation you like the module to be engaged.</li>
<li>click "Engage".</li>
</ol>
<form method="get" name="selectModuleForm" action="axis2-admin/listOperations">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select a Module :</td>
</tr>
<tr>
<td>
<select name="modules">
<%
HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP,null);
Collection moduleCol = moduels.values();
for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
String modulename = axisOperation.getName();
%> <option align="left" value="<%=modulename%>"><%=modulename%></option>
<%
}
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select an Operation :</td>
</tr>
<tr>
<td>
<select name="axisOperation">
<%
Iterator operations = (Iterator)request.getSession().getAttribute(Constants.OPERATION_MAP);
while (operations.hasNext()) {
AxisOperation axisOperationtion = (AxisOperation)operations.next();
String opname = axisOperationtion.getName().getLocalPart();
%> <option align="left" value="<%=opname%>"><%=opname%></option>
<%
}
request.getSession().setAttribute(Constants.OPERATION_MAP,null);
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value=" Engage " >
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<textarea cols="50" <%
if(status == null){
%>
style="display:none"
<%
} %>
><%=Utils.sanitizeWebOutput(status)%></textarea>
</td>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,144 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
org.apache.axis2.description.AxisService,
java.util.Collection,
java.util.HashMap,
java.util.Iterator"
%>
<%@ page import="org.apache.axis2.util.Utils" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
String status = (String) request.getSession().getAttribute(Constants.ENGAGE_STATUS);
%>
<h1>Engage Module for a Service</h1>
<p>To engage a module for a axis service,</p>
<ol>
<li>select the module you want to engage</li>
<li>select the axis service you like the module to be engaged.</li>
<li>click "Engage".</li>
</ol>
<form method="get" name="selectModuleForm" action="axis2-admin/engageToService">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select a Module :</td>
</tr>
<tr>
<td>
<select name="modules">
<%
HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP,null);
Collection moduleCol = moduels.values();
for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
String modulename = axisOperation.getName();
%>
<option align="left" value="<%=modulename%>"><%=modulename%>
</option>
<%
}
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select a Service :</td>
</tr>
<tr>
<td>
<select name="axisService">
<%
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
Collection serviceCol = services.values();
for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
AxisService axisService = (AxisService)iterator.next();
String serviceName = axisService.getName();
%>
<option align="left" value="<%=serviceName%>"><%=serviceName%>
</option>
<%
}
request.getSession().setAttribute(Constants.SERVICE_MAP,null);
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value=" Engage ">
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<textarea cols="50" <%
if (status == null) {
%>
style="display:none"
<%
} %>
><%=Utils.sanitizeWebOutput(status)%>
</textarea>
</td>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,31 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isErrorPage="true" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<table>
<tr>
<td align="center">An error has occured!. Please check the details below</td>
</tr>
<tr>
<td align="center"><%=exception.getMessage()%></td>
</tr>
</table>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,30 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
java.util.Hashtable"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
Hashtable errornessModules =(Hashtable)request.getSession().getAttribute(Constants.ERROR_MODULE_MAP);
String moduleName = request.getParameter("moduleName");
%> <h3>The Module has deployment faults</h3><%
%><font color="red" ><%=(String)errornessModules.get(moduleName) %></font><%
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,55 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%> <%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
java.util.Collection,
java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Globally Engaged Modules</h1>
<%
boolean foundModules = false;
boolean wroteUL = false;
String modulename = "";
Collection moduleCol = (Collection) request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP, null);
if (moduleCol != null && moduleCol.size() > 0) {
for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
AxisModule axisOperation = (AxisModule) iterator.next();
modulename = axisOperation.getName();
if (!wroteUL) {
wroteUL = true;
%>
<ul>
<%
}
%><li><%=modulename%></li>
<br> <%
}
if (wroteUL){
%>
</ul>
<%
}
} else{
%>
<h2><font color="blue">There are no modules engaged globally</font></h2>
<%
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,23 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
</td></tr>
</table>
<jsp:include page="footer.inc"></jsp:include>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<table width="100%">
<tr>
<td align="left"><img src="axis2-web/images/asf-logo.gif"/><h1>Axis 2</h1></td>
<td align="right"><img src="axis2-web/images/axis.jpg"/></td>
</tr>
<tr>
<td>.</td>
<td align="right"><a href="logout" target="_parent" >Log out</a></td>
</tr>
</table>

View File

@ -0,0 +1,81 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
<%@ page import="org.apache.axis2.context.ServiceContext" %>
<%@ page import="org.apache.axis2.context.ServiceGroupContext" %>
<%@ page import="org.apache.axis2.deployment.util.PhasesInfo" %>
<%@ page import="org.apache.axis2.description.AxisModule" %>
<%@ page import="org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.AxisServiceGroup" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.engine.Handler" %>
<%@ page import="org.apache.axis2.engine.Phase" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=iso-8859-1" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../include/httpbase.jsp"/>
<title>Axis2 :: Administration Page</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<jsp:include page="header.inc"/>
<table class="FULL_BLANK">
<tr>
<td valign="top" width="20%">
<jsp:include page="../LeftFrame.jsp"/>
</td>
<td valign="top" align="left" width="80%">
<table width="100%">
<tr>
<td align="right" colspan="2"><a href="#" onclick="javascript:history.back();">Back</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
href="axis2-admin/logout">Log out</a></td>
</tr>
</table>

View File

@ -0,0 +1,37 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
</td>
</tr>
<tr height="20px">
<td>
<table width="100%">
<tr><td>
<table width="950px">
<tr><td><hr size="1" noshade="" /></td></tr>
<tr>
<td align="center">Copyright &#169; 1999-2006, The Apache Software Foundation<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@ -0,0 +1,29 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<table class="FULL_BLANK"><tr height="100%"><td valign="top">
<table width="100%">
<tr><td>
<table width="950px">
<tr>
<td align="left"><img src="axis2-web/images/asf-logo.gif"/></td>
<td align="right"><img src="axis2-web/images/axis_l.jpg"/></td>
</tr>
</table>
</td>
<td>&nbsp;</td></tr></table>

View File

@ -0,0 +1,71 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.transport.http.AxisServlet" %>
<%@ page import="org.apache.axis2.transport.TransportListener" %>
<%!
private String frontendHostUrl;
private String hostname;
public void jspInit() {
ServletContext context = this.getServletConfig().getServletContext();
ConfigurationContext configctx = (ConfigurationContext) context.getAttribute(AxisServlet.CONFIGURATION_CONTEXT);
if (configctx != null) {
Parameter parameter = configctx.getAxisConfiguration().getParameter(Constants.HTTP_FRONTEND_HOST_URL);
if (parameter != null) {
frontendHostUrl = (String) parameter.getValue();
}
Parameter hostnameParam = configctx.getAxisConfiguration().getParameter(TransportListener.HOST_ADDRESS);
if (hostnameParam != null) {
hostname = (String) hostnameParam.getValue();
}
}
}
public String calculateHttpBase(HttpServletRequest aRequest) {
StringBuffer stringBuffer = new StringBuffer();
if (frontendHostUrl != null) {
stringBuffer.append(frontendHostUrl);
} else {
String scheme = aRequest.getScheme();
stringBuffer.append(scheme);
stringBuffer.append("://");
stringBuffer.append(hostname != null ? hostname : aRequest.getServerName());
if (("http".equalsIgnoreCase(scheme) && aRequest.getServerPort() != 80) || "https".equalsIgnoreCase(scheme) && aRequest.getServerPort() != 443) {
stringBuffer.append(":");
stringBuffer.append(aRequest.getServerPort());
}
// I think i saw web containers return null for root web context
if (aRequest.getContextPath() != null) {
stringBuffer.append(aRequest.getContextPath());
}
}
// append / char if needed
if (stringBuffer.charAt(stringBuffer.length() - 1) != '/') {
stringBuffer.append("/");
}
String curentUrl = stringBuffer.toString();
aRequest.setAttribute("frontendHostUrl", curentUrl);
return curentUrl;
}
%>
<base href="<%= calculateHttpBase(request)%>"/>

View File

@ -0,0 +1,23 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<table width="100%">
<tr>
<td align="center"><a href="index.jsp">Back Home</a></td>
</tr>
</table>

View File

@ -0,0 +1,69 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.AxisFault" %>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.addressing.EndpointReference" %>
<%@ page import="org.apache.axis2.client.Options" %>
<%@ page import="org.apache.axis2.client.ServiceClient" %>
<%@ page import="org.apache.axis2.context.ConfigurationContext" %>
<%@ page import="org.apache.axis2.context.ConfigurationContextFactory" %>
<%@ page import="org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="javax.xml.parsers.SAXParser" %>
<%@ page import="javax.xml.parsers.SAXParserFactory" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStream" %>
<%@ page import="java.io.StringWriter" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<table width="100%">
<tr><td>
<table width="950px">
<tr>
<td align="right"><a href="axis2-web/index.jsp">Back Home</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="#" onclick="javascript:window.location.reload(true);return false;">Refresh</a></td>
</tr>
</table>
</td>
<td>&nbsp;</td></tr>
</table>

View File

@ -0,0 +1,58 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<jsp:include page="include/httpbase.jsp"/>
<title>Axis 2 - Home</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<jsp:include page="include/header.inc" />
<br/>
<h1>Welcome!</h1>
Welcome to the new generation of Axis. If you can see this page you have
successfully deployed the Axis2 Web Application. However, to ensure that Axis2
is properly working, we encourage you to click on the validate link.
<br/>
<ul>
<li><a href="services/listServices">Services</a>
<br/>
View the list of all the available services deployed in this server.
</li>
<li><a href="axis2-web/HappyAxis.jsp">Validate</a>
<br/>
Check the system to see whether all the required libraries are in place
and view the system information.
</li>
<%--<li><a href="interop.jsp">Do an interop test</a>
<br/>
You can run Interoperability tests here
</li>--%>
<li><a href="axis2-admin/">Administration</a>
<br/>
Console for administering this Axis2 installation.
</li>
</ul>
<jsp:include page="include/footer.inc"/>
</body>
</html>

View File

@ -0,0 +1,85 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisOperation"%>
<%@ page import="org.apache.axis2.description.AxisService"%>
<%@ page import="java.util.Hashtable"%>
<%@ page import="java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<jsp:include page="include/httpbase.jsp"/>
<title>List Single service</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
</head>
<body>
<jsp:include page="include/header.inc"></jsp:include>
<jsp:include page="include/link-footer.jsp"></jsp:include>
<%
String prifix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"services/";
%>
<%
String isFault = (String)request.getSession().getAttribute(Constants.IS_FAULTY);
String servicName = request.getParameter("serviceName");
if(Constants.IS_FAULTY.equals(isFault)){
Hashtable errornessservices =(Hashtable)request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
%>
<h3>This Web axisService has deployment faults</h3><%
%><font color="red" ><%=(String)errornessservices.get(servicName) %></font>
<%
}else {
AxisService axisService =
(AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
if(axisService!=null){
Iterator opItr = axisService.getOperations();
//operationsList = operations.values();
String serviceName = axisService.getName();
%><h2><font color="blue"><a href="<%=prifix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
<font color="blue">Service EPR : </font><font color="black"><%=prifix + axisService.getName()%></font><br>
<h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></font></h4>
<i><font color="blue">Service Status : <%=axisService.isActive()?"Active":"InActive"%></font></i><br>
<%
if (opItr.hasNext()) {
%><i>Available operations</i><%
} else {
%><i> There are no Operations specified</i><%
}
opItr = axisService.getOperations();
%><ul><%
while (opItr.hasNext()) {
AxisOperation axisOperation = (AxisOperation) opItr.next();
%><li><%=axisOperation.getName().getLocalPart()%></li>
<%
}
%></ul>
<%
} else{
%>
<h3><font color="red" >No services found in this location.</font></h3>
<%
}
}
%>
<jsp:include page="include/footer.inc"></jsp:include>
</body>
</html>

View File

@ -0,0 +1,104 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants" %>
<%@ page import="org.apache.axis2.description.AxisModule" %>
<%@ page import="org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<jsp:include page="include/httpbase.jsp"/>
<title>List Services</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<jsp:include page="include/adminheader.jsp"/>
<h1>Available services</h1>
<%
String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) +"/";
%>
<%
HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
request.getSession().setAttribute(Constants.SERVICE_MAP,null);
AxisService axisService = (AxisService) serviceMap.get(request.getParameter("serviceName"));
if (axisService != null) {
Iterator operations;
String serviceName;
operations = axisService.getOperations();
serviceName = axisService.getName();
%><hr>
<h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a>
</font></h2>
<font color="blue">Service EPR :</font><font color="black"><%=prefix + axisService.getName()%></font>
<h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></font></h4>
<i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br/>
<%
Collection engagedModules = axisService.getEngagedModules();
String moduleName;
if (engagedModules.size() > 0) {
%>
<i>Engaged Modules for the Axis Service</i><ul>
<%
for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
AxisModule axisOperation = (AxisModule) iteratorm.next();
moduleName = axisOperation.getName();
%><li><%=moduleName%></li>
<%
}%>
</ul>
<%
}
if (operations.hasNext()) {
%><br><i>Available operations</i><%
} else {
%><i> There are no operations specified</i><%
}
%><ul><%
operations = axisService.getOperations();
while (operations.hasNext()) {
AxisOperation axisOperation = (AxisOperation) operations.next();
%><li><%=axisOperation.getName().getLocalPart()%></li>
<%
engagedModules = axisOperation.getEngagedModules();
if (engagedModules.size() > 0) {
%>
<br><i>Engaged Modules for the Operation</i><ul>
<%
for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
AxisModule moduleDecription = (AxisModule) iterator2.next();
moduleName = moduleDecription.getName();
%><li><%=moduleName%></li><br><%
}
%></ul><%
}
}
%></ul>
<%
}
%>
<jsp:include page="include/adminfooter.inc"/>
</body>
</html>

View File

@ -0,0 +1,81 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%> <%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule,
java.util.Collection"%>
<%@ page import="java.util.Enumeration"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Hashtable"%>
<%@ page import="java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Available Modules</h1>
<%
boolean foundModules = false;
boolean wroteUL = false;
HashMap moduleMap = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
request.getSession().setAttribute(Constants.MODULE_MAP,null);
Hashtable errornesModules =(Hashtable)request.getSession().getAttribute(Constants.ERROR_MODULE_MAP);
if (moduleMap!=null && !moduleMap.isEmpty()){
String modulename ;
String moduleDescription ;
Collection moduleNames = moduleMap.values();
for (Iterator iterator = moduleNames.iterator(); iterator.hasNext();) {
foundModules = true;
AxisModule moduleQName = (AxisModule) iterator.next();
modulename = moduleQName.getName();
moduleDescription = moduleQName.getModuleDescription();
if(moduleDescription==null){
moduleDescription = "[ -- No module description found --]";
}
if (!wroteUL){
wroteUL = true;
%>
<ul>
<%
}
%><li><b><%=modulename%></b> : <%=moduleDescription%></li>
<%
}
if (wroteUL){
%>
</ul>
<%
}
}
%>
<%if(errornesModules.size()>0){
%>
<h3><font color="red">Faulty Modules</font></h3>
<%
Enumeration faultyModules = errornesModules.keys();
while (faultyModules.hasMoreElements()) {
foundModules = true;
String faultyModuleName = (String) faultyModules.nextElement();
%><a href="errorModule.jsp?moduleName=<%=faultyModuleName%>">
<%=faultyModuleName%></a>
<%
}
}
if(! foundModules) {
%>
<h2><font color="blue">There are no modules deployed in the system.</font></h2>
<%
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,158 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisModule" %>
<%@ page import="org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<h1>Available Services</h1>
<% String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) + "/";
%>
<%
HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
Hashtable errornessservice = (Hashtable) request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
boolean status = false;
if (serviceMap != null && !serviceMap.isEmpty()) {
Iterator operations;
String serviceName;
Collection servicecol = serviceMap.values();
for (Iterator iterator = servicecol.iterator(); iterator.hasNext();) {
AxisService axisService = (AxisService) iterator.next();
operations = axisService.getOperations();
serviceName = axisService.getName();
%><h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
<%
// do we need to enable REST in the main servlet so that it handles both REST and SOAP messages
boolean disableREST = false;
AxisConfiguration axisConfiguration = axisService.getAxisConfiguration();
Parameter parameter ;
// do we need to completely disable REST support
parameter = axisConfiguration.getParameter(Constants.Configuration.DISABLE_REST);
if (parameter != null) {
disableREST = !JavaUtils.isFalseExplicitly(parameter.getValue());
}
if (!disableREST) {
%>
<%
%>
<%
}
String serviceDescription = axisService.getServiceDescription();
if (serviceDescription == null || "".equals(serviceDescription)) {
serviceDescription = "No description available for this service";
}
%>
<p>Service Description : <%=serviceDescription%><br/>
Service EPR : <%=prefix + axisService.getName()%><br/>
Service Status : <%=axisService.isActive() ? "Active" : "InActive"%>
Actions : <a href="axis2-admin/deleteService?serviceName=<%=serviceName%>">Remove Service</a></p><br>
<%
Collection engagedModules = axisService.getEngagedModules();
String moduleName;
boolean modules_present = false;
if (engagedModules.size() > 0) {
%>
<i>Engaged modules for the service</i>
<%
for (Iterator iteratorm = engagedModules.iterator(); iteratorm.hasNext();) {
AxisModule axisOperation = (AxisModule) iteratorm.next();
moduleName = axisOperation.getName();
if (!modules_present) {
modules_present = true;
%>
<ul>
<% }
%><li><%=moduleName%> :: <a href="axis2-admin/disengageModule?type=service&serviceName=<%=serviceName%>&module=<%=moduleName%>">Disengage</a></li>
<br>
<%
}
if (modules_present) {%>
</ul>
<%
}
}
if (operations.hasNext()) {
%><br><i>Available operations</i><%
} else {
%><i> There are no Operations specified</i><%
}
%><ul><%
operations = axisService.getOperations();
while (operations.hasNext()) {
AxisOperation axisOperation = (AxisOperation) operations.next();
%><li><%=axisOperation.getName().getLocalPart()%></li>
<%-- <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
<%
engagedModules = axisOperation.getEngagedModules();
if (engagedModules.size() > 0) {
%>
<br><i>Engaged Modules for the Operation</i><ul>
<%
for (Iterator iterator2 = engagedModules.iterator(); iterator2.hasNext();) {
AxisModule moduleDecription = (AxisModule) iterator2.next();
moduleName = moduleDecription.getName();
%><li><%=moduleName%> :: <a href="axis2-admin/disengageModule?type=operation&serviceName=<%=serviceName%>&operation=<%=axisOperation.getName().getLocalPart()%>&module=<%=moduleName%>">Disengage</a></li><br><%
}
%></ul><%
}
}
%></ul>
<%
status = true;
}
}
if (errornessservice != null) {
if (errornessservice.size() > 0) {
request.getSession().setAttribute(Constants.IS_FAULTY, Constants.IS_FAULTY);
%>
<h3><font color="red">Faulty Services</font></h3>
<%
Enumeration faultyservices = errornessservice.keys();
while (faultyservices.hasMoreElements()) {
String faultyserviceName = (String) faultyservices.nextElement();
%><h3><font color="blue"><a href="services/ListFaultyServices?serviceName=<%=faultyserviceName%>">
<%=faultyserviceName%></a></font></h3>
<%
}
}
status = true;
}
if (!status) {
%> No services listed! Try hitting refresh. <%
}
%>
<jsp:include page="include/adminfooter.inc" />

View File

@ -0,0 +1,131 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Enumeration" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<jsp:include page="include/httpbase.jsp"/>
<head><title>List Services</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<jsp:include page="include/header.inc" />
<jsp:include page="include/link-footer.jsp" />
<h1>Available services</h1>
<% String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) + "/";
%>
<%
HashMap serviceMap = (HashMap) request.getSession().getAttribute(Constants.SERVICE_MAP);
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
Hashtable errornessservice = (Hashtable) request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
boolean status = false;
if (serviceMap != null && !serviceMap.isEmpty()) {
Iterator opItr;
//HashMap operations;
String serviceName;
Collection servicecol = serviceMap.values();
// Collection operationsList;
for (Iterator iterator = servicecol.iterator(); iterator.hasNext();) {
AxisService axisService = (AxisService) iterator.next();
opItr = axisService.getOperations();
//operationsList = operations.values();
serviceName = axisService.getName();
%><h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
<%
boolean disableREST = false;
AxisConfiguration axisConfiguration = axisService.getAxisConfiguration();
Parameter parameter ;
// do we need to completely disable REST support
parameter = axisConfiguration.getParameter(Constants.Configuration.DISABLE_REST);
if (parameter != null) {
disableREST = !JavaUtils.isFalseExplicitly(parameter.getValue());
}
if (!disableREST ) {
%>
<%
}
String serviceDescription = axisService.getServiceDescription();
if (serviceDescription == null || "".equals(serviceDescription)) {
serviceDescription = "No description available for this service";
}
%>
<h5>Service Description : <font color="black"><%=serviceDescription%></font></h5>
<h5>Service EPR : <%=prefix + axisService.getName()%></h5>
<h5>Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></h5><br>
<%
if (opItr.hasNext()) {
%><i>Available Operations</i><%
} else {
%><i> There are no Operations specified</i><%
}
opItr = axisService.getOperations();
%><ul><%
while (opItr.hasNext()) {
AxisOperation axisOperation = (AxisOperation) opItr.next();
%><li><%=axisOperation.getName().getLocalPart()%></li>
<%-- <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
<%
}
%></ul>
<%
status = true;
}
}
if (errornessservice != null) {
if (errornessservice.size() > 0) {
request.getSession().setAttribute(Constants.IS_FAULTY, Constants.IS_FAULTY);
%>
<hr>
<h3><font color="blue">Faulty Services</font></h3>
<%
Enumeration faultyservices = errornessservice.keys();
while (faultyservices.hasMoreElements()) {
String faultyserviceName = (String) faultyservices.nextElement();
%><h3><font color="blue"><a href="services/ListFaultyServices?serviceName=<%=faultyserviceName%>">
<%=faultyserviceName%></a></font></h3>
<%
}
}
status = true;
}
if (!status) {
%> No services listed! Try hitting refresh. <%
}
%>
<jsp:include page="include/footer.inc" />
</body>
</html>

View File

@ -0,0 +1,103 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisOperation" %>
<%@ page import="org.apache.axis2.description.AxisService" %>
<%@ page import="org.apache.axis2.description.Parameter" %>
<%@ page import="org.apache.axis2.engine.AxisConfiguration" %>
<%@ page import="org.apache.axis2.util.JavaUtils" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<h1>List Single Service</h1>
<%
String prefix = request.getAttribute("frontendHostUrl") + (String)request.getSession().getAttribute(Constants.SERVICE_PATH) + "/";
%>
<%
String isFault = (String) request.getSession().getAttribute(Constants.IS_FAULTY);
String servicName = request.getParameter("serviceName");
if (Constants.IS_FAULTY.equals(isFault)) {
Hashtable errornessservices = (Hashtable) request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
%>
<h3>This Axis service has deployment faults.</h3><%
%><font color="red"><%=(String) errornessservices.get(servicName) %></font>
<%
} else {
AxisService axisService =
(AxisService) request.getSession().getAttribute(Constants.SINGLE_SERVICE);
if (axisService != null) {
Iterator opItr = axisService.getOperations();
//operationsList = operations.values();
String serviceName = axisService.getName();
%><h2><font color="blue"><a href="<%=prefix + axisService.getName()%>?wsdl"><%=serviceName%></a></font></h2>
<font color="blue">Service EPR : </font><font color="black"><%=prefix + axisService.getName()%></font><br>
<%
boolean disableREST = false;
AxisConfiguration axisConfiguration = axisService.getAxisConfiguration();
Parameter parameter;
// do we need to completely disable REST support
parameter = axisConfiguration.getParameter(Constants.Configuration.DISABLE_REST);
if (parameter != null) {
disableREST = !JavaUtils.isFalseExplicitly(parameter.getValue());
}
if (!disableREST ) {
%>
<%
}
String serviceDescription = axisService.getServiceDescription();
if (serviceDescription == null || "".equals(serviceDescription)) {
serviceDescription = "No description available for this service";
}
%>
<h4>Service Description : <font color="black"><%=serviceDescription%></font></h4>
<i><font color="blue">Service Status : <%=axisService.isActive() ? "Active" : "InActive"%></font></i><br>
<%
if (opItr.hasNext()) {
%><i>Available operations</i><%
} else {
%><i> There are no Operations specified</i><%
}
opItr = axisService.getOperations();
%><ul><%
while (opItr.hasNext()) {
AxisOperation axisOperation = (AxisOperation) opItr.next();
%><li><%=axisOperation.getName().getLocalPart()%></li>
<%-- <br>Operation EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
<%
}
%></ul>
<%
} else {
%>
<h3><font color="red">No services found in this location</font></h3>
<%
}
}
%>
<jsp:include page="include/adminfooter.inc"/>

View File

@ -0,0 +1,69 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<script type="text/javascript">
<!--
function checkFileUpload(){
if (document.getElementById('serviceUpload').value == '') {
alert('Please select a file before clicking the upload button.');
return false;
} else {
document.Axis2upload.submit();
}
}
//-->
</script>
<h1>Upload an Axis Service Archive File</h1>
<p>You can upload a packaged Axis2 service from this page in two small steps.</p>
<ul>
<li>Browse to the location and select the axis service archive file you wish to upload</li>
<li>Click "Upload" button</li>
</ul>
<p>Simple as that!</p>
<% if ("success".equals(request.getAttribute("status"))) { %>
<font color="green">File <%= request.getAttribute("filename") %> successfully uploaded </font><br/><br/>
<%
} else if ("failure".equals(request.getAttribute("status"))) {
%>
<font color="red">The following error occurred <br/> <%= request.getAttribute("cause") %></font><br/>
<% } %>
<form method="post" name="Axis2upload" id="Axis2upload" action="axis2-admin/upload"
enctype="multipart/form-data">
<table>
<tr>
<td>Service archive : </td>
<td><input id="serviceUpload" type="file" name="filename" size="50"/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="upload" type="button" onclick="javascript:checkFileUpload();" value=" Upload "/></td>
</tr>
</table>
</form>
<blockquote>
<p>Hot deployment of new service archives is <%=request.getAttribute("hotDeployment") %></p>
<p>Hot update of existing service archives is <%=request.getAttribute("hotUpdate") %></p>
</blockquote>
<jsp:include page="include/adminfooter.inc"/>

View File

@ -0,0 +1,50 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.context.ServiceContext" %>
<%@ page import="java.util.Iterator" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"/>
<h1>Running Context Hierarchy</h1>
<%
ServiceContext serviceContext = (ServiceContext) request.getSession().getAttribute("ServiceContext");
String type = (String) request.getSession().getAttribute("TYPE");
if (serviceContext != null) {
if (type != null) {
if ("VIEW".equals(type)) {
Iterator propertyNames = serviceContext.getPropertyNames();
%>
<h4>Persistance Properties</h4><ul>
<%
while (propertyNames.hasNext()) {
String key = (String) propertyNames.next();
Object property = serviceContext.getProperty(key);
%>
<li><%=key%> : <%=property.toString()%></li>
<%
}
%></ul>
<%
}
} else {
%> <h4>No Service Context Found</h4><%
}
}
%>
<jsp:include page="include/adminfooter.inc"/>

View File

@ -0,0 +1,55 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%>
<%@ page import="org.apache.axis2.context.ConfigurationContext"%>
<%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
<%@ page import="java.util.Iterator"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Runing Context hierachy</h1>
<%
String type = (String) request.getSession().getAttribute("TYPE");
ConfigurationContext configCtx = (ConfigurationContext) request.getSession().getAttribute("ConfigurationContext");
ServiceGroupContext sgContext = (ServiceGroupContext) request.getSession().getAttribute("ServiceGroupContext");
if (sgContext != null) {
if (type != null) {
if ("VIEW".equals(type)) {
Iterator propertyNames = sgContext.getPropertyNames();
%>
<h4>Persistance properties</h4><ul>
<%
while (propertyNames.hasNext()) {
String key = (String) propertyNames.next();
Object property = sgContext.getProperty(key);
%>
<li><%=key%> : <%=property.toString()%></li>
<%
}
%></ul>
<%
} else if("DELETE".equals(type)){
configCtx.removeServiceGroupContext(sgContext.getId());
%>Removed the context<%
}
}
} else {
%> <h4>No service group context found</h4><%
}
%>
<jsp:include page="include/adminfooter.inc"></jsp:include>

View File

@ -0,0 +1,111 @@
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
--%> <%@ page import="org.apache.axis2.Constants,
org.apache.axis2.deployment.util.PhasesInfo,
org.apache.axis2.engine.Phase"%>
<%@ page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<h1>Available Phases</h1>
<%
PhasesInfo phases = (PhasesInfo)request.getSession().getAttribute(Constants.PHASE_LIST);
request.getSession().setAttribute(Constants.PHASE_LIST,null);
List tempList = phases.getGlobalInflow();
%><h2><font color="blue">System Pre-defined Phases</font></h2>
<b>InFlow Up to Dispatcher</b>
<blockquote>
<%
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>InFaultFlow </b>
<blockquote>
<%
tempList = phases.getGlobalInFaultPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>OutFlow </b>
<blockquote>
<%
tempList = phases.getGlobalOutPhaseList();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>OutFaultFlow </b>
<blockquote>
<%
tempList = phases.getOUT_FaultPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<br>
<h2><font color="blue">User Defined Phases</font></h2>
<b>Inflow after Dispatcher</b>
<blockquote>
<%
tempList = phases.getOperationInPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>InFaultFlow after Dispatcher</b>
<blockquote>
<%
tempList = phases.getOperationInFaultPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>OutFlow </b>
<blockquote>
<%
tempList = phases.getOperationOutPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<b>OutFaultFlow </b>
<blockquote>
<%
tempList = phases.getOperationOutFaultPhases();
for (int i = 0; i < tempList.size(); i++) {
Phase phase = (Phase) tempList.get(i);
%><%=phase.getPhaseName()%><br><%
}
%>
</blockquote>
<jsp:include page="include/adminfooter.inc"></jsp:include>