/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Axis" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.table.*;
import org.apache.axis.monitor.SOAPMonitorConstants;
/**
* This is a SOAP Mointor Applet class. This class provides
* the user interface for displaying data from the SOAP
* monitor service.
*
* @author Brian Price (pricebe@us.ibm.com)
*
*/
public class SOAPMonitorApplet extends JApplet {
/**
* Private data
*/
private JPanel main_panel = null;
private JTabbedPane tabbed_pane = null;
private int port = 0;
private Vector pages = null;
/**
* Constructor
*/
public SOAPMonitorApplet() {
}
/**
* Applet initialization
*/
public void init() {
// Get the port to be used
String port_str = getParameter("port");
if (port_str != null) {
port = Integer.parseInt(port_str);
}
// Try to use the system look and feel
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e){
}
// Create main panel to hold notebook
main_panel = new JPanel();
main_panel.setBackground(Color.white);
main_panel.setLayout(new BorderLayout());
setContentPane(main_panel);
// Create the notebook
tabbed_pane = new JTabbedPane(JTabbedPane.TOP);
main_panel.add(tabbed_pane,BorderLayout.CENTER);
// Add notebook page for default host connection
pages = new Vector();
addPage(new SOAPMonitorPage(getCodeBase().getHost()));
}
/**
* Add a page to the notebook
*/
private void addPage(SOAPMonitorPage pg) {
tabbed_pane.addTab(" "+pg.getHost()+" ", pg);
pages.addElement(pg);
}
/**
* Applet is being displayed
*/
public void start() {
// Tell all pages to start talking to the server
Enumeration e = pages.elements();
while (e.hasMoreElements()) {
SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
if (pg != null) {
pg.start();
}
}
}
/*
* Applet is no longer displayed
*/
public void stop() {
// Tell all pages to stop talking to the server
Enumeration e = pages.elements();
while (e.hasMoreElements()) {
SOAPMonitorPage pg = (SOAPMonitorPage) e.nextElement();
if (pg != null) {
pg.stop();
}
}
}
/**
* Applet cleanup
*/
public void destroy() {
tabbed_pane = null;
main_panel = null;
}
/**
* This class provides the contents of a notebook page
* representing a server connection.
*/
class SOAPMonitorPage extends JPanel
implements Runnable,
ListSelectionListener,
ActionListener {
/**
* Status Strings
*/
private final String STATUS_ACTIVE = "The SOAP Monitor is started.";
private final String STATUS_STOPPED = "The SOAP Monitor is stopped.";
private final String STATUS_CLOSED = "The server communication has been terminated.";
private final String STATUS_NOCONNECT = "The SOAP Monitor is unable to communcate with the server.";
/**
* Private data
*/
private String host = null;
private Socket socket = null;
private ObjectInputStream in = null;
private ObjectOutputStream out = null;
private SOAPMonitorTableModel model = null;
private JTable table = null;
private JScrollPane scroll = null;
private JPanel list_panel = null;
private JPanel list_buttons = null;
private JButton remove_button = null;
private JButton remove_all_button = null;
private JButton filter_button = null;
private JPanel details_panel = null;
private JPanel details_header = null;
private JSplitPane details_soap = null;
private JPanel details_buttons = null;
private JLabel details_time = null;
private JLabel details_target = null;
private JLabel details_status = null;
private JLabel details_time_value = null;
private JLabel details_target_value = null;
private JLabel details_status_value = null;
private EmptyBorder empty_border = null;
private EtchedBorder etched_border = null;
private JPanel request_panel = null;
private JPanel response_panel = null;
private JLabel request_label = null;
private JLabel response_label = null;
没有合适的资源?快使用搜索试试~ 我知道了~
Tomcat与Java.Web开发技术详解源码.rar
共464个文件
class:209个
jsp:96个
java:60个
需积分: 4 5 下载量 70 浏览量
2009-02-04
11:26:13
上传
评论
收藏 1.13MB RAR 举报
温馨提示
Tomcat与Java.Web开发技术详解源码.rar
资源推荐
资源详情
资源评论
收起资源包目录
Tomcat与Java.Web开发技术详解源码.rar (464个子文件)
mod_jk.so-ap2.0.46-rh72..46-rh72 122KB
build.bat 1KB
setclasspath.bat 999B
test.bat 952B
compile.bat 679B
test.bat 593B
compile.bat 459B
compile.bat 358B
compile.bat 249B
compile.bat 182B
startup.bat 176B
logo.bmp 29KB
logo.bmp 29KB
logo.bmp 29KB
logo.bmp 29KB
InteropTestSoapBindingStub.class 31KB
rfq.class 19KB
TestClient.class 15KB
EchoAttachment.class 13KB
DynamicInvoker.class 10KB
TestRef.class 10KB
AddressBookSOAPBindingStub.class 9KB
v3.class 8KB
AddressSoapBindingStub.class 8KB
EchoAttachmentsService.class 7KB
SignedSOAPEnvelope.class 7KB
InteropTestSoapBindingImpl.class 7KB
WidgetPriceSoapBindingStub.class 6KB
HelloBindingStub.class 5KB
MailUserData.class 5KB
MailUserData.class 5KB
TestSer.class 5KB
Address.class 5KB
GetQuote.class 5KB
TCPListener$SocketHandler.class 5KB
SOAPArrayStruct.class 5KB
LogHandler.class 5KB
JMSTest.class 5KB
GetQuote1.class 5KB
TestClient.class 5KB
SOAPStructStruct.class 4KB
GetQuote1.class 4KB
BookDBEJBImpl.class 4KB
BookDBEJBImpl.class 4KB
TCPListener.class 4KB
BookDB.class 4KB
BookDB.class 4KB
BookDB.class 4KB
Main.class 4KB
WidgetPriceServiceLocator.class 4KB
EmployeeClient.class 4KB
AddressServiceServiceLocator.class 4KB
RegistryService.class 4KB
DOMUtils.class 4KB
SOAPStruct.class 4KB
AddressBookServiceLocator.class 4KB
PMessage.class 4KB
PMessage.class 4KB
InteropTestServiceLocator.class 4KB
echoHeaderStructHandler.class 4KB
Phone.class 4KB
HelloWorldLocator.class 4KB
DelayedStockQuote.class 4KB
TCPSender.class 4KB
echoHeaderStringHandler.class 4KB
GetQuote.class 4KB
AddressBookSOAPBindingSkeleton.class 4KB
EmbeddedTomcat.class 3KB
WidgetPriceSoapBindingSkeleton.class 3KB
Client.class 3KB
SOAPFaultTest.class 3KB
TestMsg.class 3KB
FileTest.class 3KB
MailTest.class 3KB
ClientSigningHandler.class 3KB
UddiPing.class 3KB
InteropTestPortType.class 3KB
FileReader.class 3KB
TestElem.class 3KB
ProxyService.class 3KB
HelloClient.class 3KB
DataDeser.class 3KB
LoopServlet.class 3KB
TCPTransport.class 3KB
TestClient.class 3KB
Client.class 3KB
GetQuote2.class 3KB
MyListPortsWriter.class 2KB
GetInfo.class 2KB
CalcClient.class 2KB
StockQuoteService.class 2KB
PropertiesServlet.class 2KB
AdminClient.class 2KB
AddressClient.class 2KB
NoteFilter.class 2KB
PropertiesServlet_1.class 2KB
DataSer.class 2KB
GetInfo.class 2KB
AddServlet.class 2KB
LogHandler.class 2KB
共 464 条
- 1
- 2
- 3
- 4
- 5
资源评论
jiangweiwowo
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功