亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? soapmonitorapplet.java

?? 用JAVA 寫 的 web service 的axis 應用實現
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/*
 * Copyright 2001,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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;
        private SOAPMonitorTextArea   request_text = null;
        private SOAPMonitorTextArea   response_text = null;
        private JScrollPane           request_scroll = null;
        private JScrollPane           response_scroll = null;
        private JButton               layout_button = null;
        private JSplitPane            split = null;
        private JPanel                status_area = null;
        private JPanel                status_buttons = null;
        private JButton               start_button = null;
        private JButton               stop_button = null;
        private JLabel                status_text = null;
        private JPanel                status_text_panel = null;
        private SOAPMonitorFilter     filter = null;
        private GridBagLayout         details_header_layout = null;
        private GridBagConstraints    details_header_constraints = null;
        private JCheckBox             reflow_xml = null;

        /**
         * Constructor (create and layout page)
         */
        public SOAPMonitorPage(String host_name) {
            host = host_name;
            // Set up default filter (show all messages)
            filter = new SOAPMonitorFilter();
            // Use borders to help improve appearance
            etched_border = new EtchedBorder();
            // Build top portion of split (list panel) 
            model = new SOAPMonitorTableModel();
            table = new JTable(model);
            table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            table.setRowSelectionInterval(0,0);
            table.setPreferredScrollableViewportSize(new Dimension(600, 96));
            table.getSelectionModel().addListSelectionListener(this);
            scroll = new JScrollPane(table);
            remove_button = new JButton("Remove");
            remove_button.addActionListener(this);
            remove_button.setEnabled(false);
            remove_all_button = new JButton("Remove All");
            remove_all_button.addActionListener(this);
            filter_button = new JButton("Filter ...");
            filter_button.addActionListener(this);
            list_buttons = new JPanel();
            list_buttons.setLayout(new FlowLayout());
            list_buttons.add(remove_button);
            list_buttons.add(remove_all_button);
            list_buttons.add(filter_button);
            list_panel = new JPanel();
            list_panel.setLayout(new BorderLayout());
            list_panel.add(scroll,BorderLayout.CENTER);
            list_panel.add(list_buttons, BorderLayout.SOUTH);
            list_panel.setBorder(empty_border);
            // Build bottom portion of split (message details) 
            details_time = new JLabel("Time: ", SwingConstants.RIGHT);
            details_target = new JLabel("Target Service: ", SwingConstants.RIGHT);
            details_status = new JLabel("Status: ", SwingConstants.RIGHT);
            details_time_value = new JLabel();
            details_target_value = new JLabel();
            details_status_value = new JLabel();
            Dimension preferred_size = details_time.getPreferredSize();
            preferred_size.width = 1;
            details_time.setPreferredSize(preferred_size); 
            details_target.setPreferredSize(preferred_size); 
            details_status.setPreferredSize(preferred_size); 
            details_time_value.setPreferredSize(preferred_size); 
            details_target_value.setPreferredSize(preferred_size); 
            details_status_value.setPreferredSize(preferred_size);
            details_header = new JPanel();
            details_header_layout = new GridBagLayout();
            details_header.setLayout(details_header_layout);
            details_header_constraints = new GridBagConstraints();
            details_header_constraints.fill=GridBagConstraints.BOTH;
            details_header_constraints.weightx=0.5;
            details_header_layout.setConstraints(details_time,details_header_constraints);
            details_header.add(details_time);
            details_header_layout.setConstraints(details_time_value,details_header_constraints);
            details_header.add(details_time_value);
            details_header_layout.setConstraints(details_target,details_header_constraints);
            details_header.add(details_target);
            details_header_constraints.weightx=1.0;
            details_header_layout.setConstraints(details_target_value,details_header_constraints);
            details_header.add(details_target_value);
            details_header_constraints.weightx=.5;
            details_header_layout.setConstraints(details_status,details_header_constraints);
            details_header.add(details_status);
            details_header_layout.setConstraints(details_status_value,details_header_constraints);
            details_header.add(details_status_value);
            details_header.setBorder(etched_border);
            request_label = new JLabel("SOAP Request", SwingConstants.CENTER);
            request_text = new SOAPMonitorTextArea();
            request_text.setEditable(false);
            request_scroll = new JScrollPane(request_text);
            request_panel = new JPanel();
            request_panel.setLayout(new BorderLayout());
            request_panel.add(request_label, BorderLayout.NORTH);
            request_panel.add(request_scroll, BorderLayout.CENTER);
            response_label = new JLabel("SOAP Response", SwingConstants.CENTER);
            response_text = new SOAPMonitorTextArea();
            response_text.setEditable(false);
            response_scroll = new JScrollPane(response_text);
            response_panel = new JPanel();
            response_panel.setLayout(new BorderLayout());
            response_panel.add(response_label, BorderLayout.NORTH);
            response_panel.add(response_scroll, BorderLayout.CENTER);
            details_soap = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
            details_soap.setTopComponent(request_panel);
            details_soap.setRightComponent(response_panel);
            details_soap.setResizeWeight(.5);
            details_panel = new JPanel();
            layout_button = new JButton("Switch Layout");
            layout_button.addActionListener(this);
            reflow_xml = new JCheckBox("Reflow XML text");
            reflow_xml.addActionListener(this);
            details_buttons = new JPanel();
            details_buttons.setLayout(new FlowLayout());
            details_buttons.add(reflow_xml);
            details_buttons.add(layout_button);
            details_panel.setLayout(new BorderLayout());
            details_panel.add(details_header,BorderLayout.NORTH);
            details_panel.add(details_soap,BorderLayout.CENTER);
            details_panel.add(details_buttons,BorderLayout.SOUTH);
            details_panel.setBorder(empty_border);
            // Add the two parts to the age split pane
            split = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
            split.setTopComponent(list_panel);
            split.setRightComponent(details_panel);
            // Build status area
            start_button = new JButton("Start");
            start_button.addActionListener(this);
            stop_button = new JButton("Stop");
            stop_button.addActionListener(this);
            status_buttons = new JPanel();
            status_buttons.setLayout(new FlowLayout());
            status_buttons.add(start_button);
            status_buttons.add(stop_button);
            status_text = new JLabel();
            status_text.setBorder(new BevelBorder(BevelBorder.LOWERED));
            status_text_panel = new JPanel();
            status_text_panel.setLayout(new BorderLayout());
            status_text_panel.add(status_text, BorderLayout.CENTER);
            status_text_panel.setBorder(empty_border);
            status_area = new JPanel();
            status_area.setLayout(new BorderLayout());
            status_area.add(status_buttons, BorderLayout.WEST);
            status_area.add(status_text_panel, BorderLayout.CENTER);
            status_area.setBorder(etched_border);
            // Add the split and status area to page
            setLayout(new BorderLayout());
            add(split, BorderLayout.CENTER);
            add(status_area, BorderLayout.SOUTH);
        }

        /**
         * Get the name of the host we are displaying
         */
        public String getHost() {
            return host;
        }

        /**
         * Set the status text
         */
        public void setStatus(String txt) {
            status_text.setForeground(Color.black);
            status_text.setText("  "+txt);
        }

        /**
         * Set the status text to an error
         */
        public void setErrorStatus(String txt) {
            status_text.setForeground(Color.red);
            status_text.setText("  "+txt);
        }

        /**
         * Start talking to the server
         */
        public void start() {
            String codehost = getCodeBase().getHost();
            if (socket == null) {
                try {
                    // Open the socket to the server
                    socket = new Socket(codehost, port);
                    // Create output stream
                    out = new ObjectOutputStream(socket.getOutputStream());
                    out.flush();
                    // Create input stream and start background
                    // thread to read data from the server
                    in = new ObjectInputStream(socket.getInputStream());
                    new Thread(this).start();
                } catch (Exception e) {
                    // Exceptions here are unexpected, but we can't
                    // really do anything (so just write it to stdout
                    // in case someone cares and then ignore it)
                    System.out.println("Exception! "+e.toString());
                    e.printStackTrace();
                    setErrorStatus(STATUS_NOCONNECT);
                    socket = null;
                }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆91精品91久久久的内涵| 色欲综合视频天天天| 99re8在线精品视频免费播放| 欧洲一区在线电影| 国产精品不卡在线观看| 日日夜夜免费精品视频| a亚洲天堂av| 久久久亚洲精品石原莉奈| 日韩精品免费视频人成| 在线免费精品视频| 17c精品麻豆一区二区免费| 黑人巨大精品欧美一区| 欧美高清dvd| 一区二区欧美视频| 色综合久久九月婷婷色综合| 国产日韩成人精品| 黄色日韩三级电影| 日韩美一区二区三区| 午夜不卡av在线| 欧美性videosxxxxx| 亚洲特黄一级片| 成人一级片网址| 中文字幕av在线一区二区三区| 麻豆久久久久久| 精品成人一区二区| 久久69国产一区二区蜜臀| 91精品在线一区二区| 午夜久久久久久| 69堂亚洲精品首页| 天使萌一区二区三区免费观看| 欧美伊人久久大香线蕉综合69 | 91精品国产综合久久福利| 亚洲一区在线播放| 91福利在线看| 亚洲最大色网站| 欧美亚洲动漫另类| 午夜日韩在线观看| 日韩一级免费观看| 狠狠色狠狠色综合| 国产亚洲欧美日韩日本| 成人午夜免费av| 亚洲女子a中天字幕| 欧美网站大全在线观看| 日本人妖一区二区| 久久色成人在线| 成人动漫一区二区| 亚洲精品久久久久久国产精华液| 在线观看亚洲精品| 日本伊人午夜精品| 欧美激情艳妇裸体舞| 91黄色免费看| 日本va欧美va欧美va精品| 2021国产精品久久精品| 成人黄色在线看| 亚洲sss视频在线视频| 日韩午夜三级在线| 高清免费成人av| 亚洲国产美国国产综合一区二区| 8v天堂国产在线一区二区| 国产精品99久久久| 亚洲综合偷拍欧美一区色| 日韩精品资源二区在线| 波多野结衣精品在线| 亚洲综合色噜噜狠狠| 精品成人免费观看| 91香蕉视频mp4| 激情久久五月天| 亚洲美女视频一区| 精品日韩99亚洲| 欧美专区日韩专区| 国产精品一区二区无线| 亚洲午夜精品网| 欧美激情资源网| 在线不卡a资源高清| 成人av综合在线| 久久99国产乱子伦精品免费| 亚洲女同ⅹxx女同tv| 欧美成人aa大片| 欧美日韩你懂得| 成人av网在线| 激情六月婷婷综合| 午夜视频一区二区三区| 中文字幕色av一区二区三区| 日韩一区二区影院| 精品视频色一区| 成人国产精品免费网站| 久久精品免费观看| 婷婷六月综合网| 亚洲女人的天堂| 国产精品入口麻豆原神| 亚洲精品在线网站| 91精品欧美一区二区三区综合在 | 国产伦精品一区二区三区视频青涩| 中文字幕日韩av资源站| 精品少妇一区二区三区在线视频 | 五月激情丁香一区二区三区| 国产精品久久久久久久久果冻传媒| 日韩精品一区二区三区在线播放| 精品婷婷伊人一区三区三| 99久久国产免费看| 成人app软件下载大全免费| 国模冰冰炮一区二区| 麻豆精品视频在线| 美腿丝袜亚洲一区| 青娱乐精品视频| 日韩不卡一区二区三区 | 极品少妇xxxx偷拍精品少妇| 午夜精品免费在线| 亚洲午夜激情网页| 亚洲综合偷拍欧美一区色| 一区二区三区日韩| 一区二区三区四区激情| 亚洲精品国产一区二区精华液 | 国产999精品久久| 欧美a一区二区| 日本强好片久久久久久aaa| 日韩黄色小视频| 偷拍一区二区三区| 蜜臀久久99精品久久久画质超高清 | 性做久久久久久久免费看| 一区二区三区精品久久久| 综合久久久久久| 亚洲免费在线电影| 亚洲观看高清完整版在线观看 | 亚洲男人电影天堂| 亚洲精选视频免费看| 亚洲在线中文字幕| 亚洲va韩国va欧美va| 免费人成网站在线观看欧美高清| 蜜臀av一区二区在线观看| 精品一区二区三区免费视频| 精品一区二区三区在线播放视频| 国产在线精品一区二区| 风间由美性色一区二区三区| 成人av在线观| 欧美日韩免费高清一区色橹橹 | 国产精品福利一区二区三区| 国产精品第四页| 亚洲va国产va欧美va观看| 国内精品自线一区二区三区视频| 紧缚捆绑精品一区二区| 99re这里只有精品视频首页| 欧美三级韩国三级日本一级| 精品久久久久久久一区二区蜜臀| 国产午夜亚洲精品午夜鲁丝片| 自拍av一区二区三区| 午夜视频一区二区| 成人小视频在线| 欧美性生活大片视频| 欧美精品一区二区在线播放 | 国产性做久久久久久| 日韩毛片精品高清免费| 日韩在线一二三区| 不卡的av电影在线观看| 91麻豆精品国产91久久久更新时间| 久久久午夜精品理论片中文字幕| 亚洲免费观看高清在线观看| 蜜臀国产一区二区三区在线播放| 成人精品视频网站| 日韩区在线观看| 亚洲精品欧美激情| 国产精品一级黄| 欧美日韩日日夜夜| 中文字幕人成不卡一区| 精品一区二区三区欧美| 欧美午夜精品久久久久久孕妇| 久久久三级国产网站| 一区二区三区在线观看欧美 | 国产精品久久久久9999吃药| 日韩综合在线视频| 色婷婷精品久久二区二区蜜臀av | 日韩电影免费在线看| 91一区二区三区在线观看| 久久久精品国产免费观看同学| 亚洲综合免费观看高清在线观看| 国产高清久久久久| 日韩欧美美女一区二区三区| 亚洲一区在线观看视频| voyeur盗摄精品| 久久综合一区二区| 精品一区二区三区不卡| 欧美日韩免费一区二区三区视频| 亚洲欧洲精品成人久久奇米网| 毛片av一区二区三区| 欧美日韩黄视频| 亚洲高清视频在线| 欧美在线视频不卡| 亚洲激情校园春色| av资源站一区| 综合久久综合久久| 97久久精品人人做人人爽50路| 中文字幕乱码日本亚洲一区二区 | 成人一级视频在线观看| 久久久久久夜精品精品免费| 裸体歌舞表演一区二区| 欧美一区二区成人6969| 日韩高清一级片| 日韩精品一区二| 久久99精品国产.久久久久久| 日韩精品自拍偷拍|