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

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

?? soapmonitorapplet.java

?? 用JAVA 寫 的 web service 的axis 應用實現
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
            } else {
                // Already started
            }
            if (socket != null) {
                // Make sure the right buttons are enabled
                start_button.setEnabled(false);
                stop_button.setEnabled(true);
                setStatus(STATUS_ACTIVE);
            }
        }

        /**
         * Stop talking to the server
         */
        public void stop() {
            if (socket != null) {
                // Close all the streams and socket
                if (out != null) {
                    try {
                        out.close();
                    } catch (IOException ioe) {
                    }
                    out = null;
                }
                if (in != null) {
                    try {
                        in.close();
                    } catch (IOException ioe) {
                    }
                    in = null;
                }
                if (socket != null) {
                    try {
                        socket.close();
                    } catch (IOException ioe) {
                    }
                    socket = null;
                }
            } else {
                // Already stopped
            }
            // Make sure the right buttons are enabled
            start_button.setEnabled(true);
            stop_button.setEnabled(false);
            setStatus(STATUS_STOPPED);
        }

        /**
         * Background thread used to receive data from
         * the server.
         */
        public void run() {
            Long            id;
            Integer         message_type;
            String          target;
            String          soap;
            SOAPMonitorData data;
            int             selected;
            int             row;
            boolean         update_needed;
            while (socket != null) {
                try {
                    // Get the data from the server
                    message_type = (Integer) in.readObject();
                    // Process the data depending on its type
                    switch (message_type.intValue()) {
                        case SOAPMonitorConstants.SOAP_MONITOR_REQUEST:
                            // Get the id, target and soap info
                            id = (Long) in.readObject();
                            target = (String) in.readObject();
                            soap = (String) in.readObject();
                            // Add new request data to the table
                            data = new SOAPMonitorData(id,target,soap);
                            model.addData(data);
                            // If "most recent" selected then update
                            // the details area if needed
                            selected = table.getSelectedRow();
                            if ((selected == 0) && model.filterMatch(data)) {
                                valueChanged(null);
                            }
                            break;
                        case SOAPMonitorConstants.SOAP_MONITOR_RESPONSE:
                            // Get the id and soap info
                            id = (Long) in.readObject();
                            soap = (String) in.readObject();
                            data = model.findData(id);
                            if (data != null) {
                                update_needed = false;
                                // Get the selected row
                                selected = table.getSelectedRow();
                                // If "most recent", then always
                                // update details area
                                if (selected == 0) {
                                    update_needed = true;
                                }
                                // If the data being updated is
                                // selected then update details
                                row = model.findRow(data);
                                if ((row != -1) && (row == selected)) {
                                    update_needed = true;
                                }
                                // Set the response and update table
                                data.setSOAPResponse(soap);
                                model.updateData(data);
                                // Refresh details area (if needed)
                                if (update_needed) {
                                    valueChanged(null);
                                }
                            }
                            break;
                    }

                } catch (Exception e) {
                    // Exceptions are expected here when the
                    // server communication has been terminated.
                    if (stop_button.isEnabled()) {
                        stop();
                        setErrorStatus(STATUS_CLOSED);
                    }
                }
            }
        }

        /**
         * Listener to handle table selection changes
         */
        public void valueChanged(ListSelectionEvent e) {
            int row = table.getSelectedRow();
            // Check if they selected a specific row
            if (row > 0) {
                remove_button.setEnabled(true);
            } else {
                remove_button.setEnabled(false);
            }
            // Check for "most recent" selection
            if (row == 0) {
                row = model.getRowCount() - 1;
                if (row == 0) {
                    row = -1;
                }
            }
            if (row == -1) {
                // Clear the details panel
                details_time_value.setText("");
                details_target_value.setText("");
                details_status_value.setText("");
                request_text.setText("");
                response_text.setText("");
            } else {
                // Show the details for the row
                SOAPMonitorData soap = model.getData(row);
                details_time_value.setText(soap.getTime());
                details_target_value.setText(soap.getTargetService());
                details_status_value.setText(soap.getStatus());
                if (soap.getSOAPRequest() == null) {
                    request_text.setText("");
                } else {
                    request_text.setText(soap.getSOAPRequest());
                    request_text.setCaretPosition(0);
                }
                if (soap.getSOAPResponse() == null) {
                    response_text.setText("");
                } else {
                    response_text.setText(soap.getSOAPResponse());
                    response_text.setCaretPosition(0);
                }
            }
        }

        /**
         * Listener to handle button actions
         */
        public void actionPerformed(ActionEvent e) {
            // Check if the user pressed the remove button
            if (e.getSource() == remove_button) {
                int row = table.getSelectedRow();
                model.removeRow(row);
                table.clearSelection();
                table.repaint();
                valueChanged(null);
            }
            // Check if the user pressed the remove all button
            if (e.getSource() == remove_all_button) {
                model.clearAll();
                table.setRowSelectionInterval(0,0);
                table.repaint();
                valueChanged(null);
            }
            // Check if the user pressed the filter button
            if (e.getSource() == filter_button) {
                filter.showDialog();
                if (filter.okPressed()) {
                    // Update the display with new filter
                    model.setFilter(filter);
                    table.repaint();
                }
            }
            // Check if the user pressed the start button
            if (e.getSource() == start_button) {
                start();
            }
            // Check if the user pressed the stop button
            if (e.getSource() == stop_button) {
                stop();
            }
            // Check if the user wants to switch layout
            if (e.getSource() == layout_button) {
                details_panel.remove(details_soap);
                details_soap.removeAll();
                if (details_soap.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
                    details_soap = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
                } else {
                    details_soap = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
                }
                details_soap.setTopComponent(request_panel);
                details_soap.setRightComponent(response_panel);
                details_soap.setResizeWeight(.5);
                details_panel.add(details_soap, BorderLayout.CENTER);
                details_panel.validate();
                details_panel.repaint();
            }
            // Check if the user is changing the reflow option
            if (e.getSource() == reflow_xml) {
                request_text.setReflowXML(reflow_xml.isSelected());
                response_text.setReflowXML(reflow_xml.isSelected());
            }
        }
    }

    /**
     * This class represend the data for a SOAP request/response pair
     */
    class SOAPMonitorData {

        /**
         * Private data
         */
        private Long    id;
        private String  time;
        private String  target;
        private String  soap_request;
        private String  soap_response;

        /**
         * Constructor
         */
        public SOAPMonitorData(Long id, String target, String soap_request) {
            this.id = id;
            // A null id is used to signal that the "most recent" entry
            // is being created.
            if (id == null) {
                this.time = "Most Recent";
                this.target = "---";
                this.soap_request = null;
                this.soap_response = null;
            } else {
                this.time = DateFormat.getTimeInstance().format(new Date());
                this.target = target;
                this.soap_request = soap_request;
                this.soap_response = null;
            }
        }

        /**
         * Get the id for the SOAP message
         */
        public Long getId() {
            return id;
        }

        /**
         * Get the time the SOAP request was received by the applet
         */
        public String getTime() {
            return time;
        }

        /**
         * Get the SOAP request target service name
         */
        public String getTargetService() {
            return target;
        }

        /**
         * Get the status of the request
         */
        public String getStatus() {
            String status = "---";
            if (id != null) {
                status = "Complete";
                if (soap_response == null) {
                    status = "Active";
                }
            }
            return status;
        }

        /**
         * Get the request SOAP contents
         */
        public String getSOAPRequest() {
            return soap_request;
        }

        /**
         * Set the resposne SOAP contents
         */
        public void setSOAPResponse(String response) {
            soap_response = response;
        }

        /**
         * Get the response SOAP contents
         */
        public String getSOAPResponse() {
            return soap_response;
        }
    }

    /**
     * This table model is used to manage the table displayed
     * at the top of the page to show all the SOAP messages
     * we have received and to control which message details are
     * to be displayed on the bottom of the page.
     */
    class SOAPMonitorTableModel extends AbstractTableModel {

        /**
         * Column titles
         */
        private final String[] column_names = { "Time",
                                                "Target Service",
                                                "Status" };
        /**                                        
         * Private data
         */
        private Vector  data;
        private Vector  filter_include;
        private Vector  filter_exclude;
        private boolean filter_active;
        private boolean filter_complete;
        private Vector  filter_data;

        /**
         * Constructor
         */
        public SOAPMonitorTableModel() {
            data = new Vector();
            // Add "most recent" entry to top of table
            SOAPMonitorData soap = new SOAPMonitorData(null,null,null);
            data.addElement(soap);
            filter_include = null;
            filter_exclude = null;
            filter_active = false;
            filter_complete = false;
            filter_data = null;
            // By default, exclude NotificationService and
            // EventViewerService messages
            filter_exclude = new Vector();
            filter_exclude.addElement("NotificationService");
            filter_exclude.addElement("EventViewerService");
            filter_data = new Vector();
            filter_data.addElement(soap);
        }

        /**
         * Get column count (part of table model interface)
         */
        public int getColumnCount() {
            return column_names.length;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美在线网站| 午夜精品久久久久久久99樱桃| 国产自产2019最新不卡| 精品黑人一区二区三区久久| 蜜桃精品视频在线| 久久久不卡网国产精品一区| 国产高清在线精品| 亚洲激情图片一区| 欧美一卡2卡3卡4卡| 国产激情91久久精品导航| 久久九九全国免费| 色婷婷av一区二区三区大白胸| 一区二区三区精品久久久| 欧美精品第1页| 国产精品自在在线| 亚洲综合久久久久| 欧美大片一区二区三区| 国产99精品国产| 亚洲综合色自拍一区| 欧美一区二区三区系列电影| 丰满亚洲少妇av| 亚洲伊人伊色伊影伊综合网| 日韩视频在线永久播放| 久久国产精品色| 国产精品电影一区二区三区| 91麻豆精品国产91久久久使用方法| 久久福利资源站| 亚洲欧洲日韩在线| 日韩美女天天操| 91美女片黄在线| 日韩国产欧美在线播放| 亚洲欧洲www| 日韩三级视频中文字幕| 成人一区二区在线观看| 日本欧美加勒比视频| 亚洲欧洲av一区二区三区久久| 91麻豆精品国产91久久久久久 | 激情综合色播五月| 中文字幕一区二区三区不卡在线| 884aa四虎影成人精品一区| 粉嫩高潮美女一区二区三区 | 91麻豆福利精品推荐| 日韩av中文字幕一区二区三区| 中文字幕欧美激情| 日韩欧美在线123| 99久久精品国产麻豆演员表| 美女久久久精品| 亚洲最大成人网4388xx| 久久久久久久久免费| 欧美人体做爰大胆视频| 色婷婷精品久久二区二区蜜臂av| 蜜臀久久久久久久| 一级中文字幕一区二区| 国产精品免费久久久久| 日韩精品一区二区在线| 欧美无乱码久久久免费午夜一区 | 国产精品高潮呻吟久久| 欧美成人乱码一区二区三区| 欧美日韩五月天| 一本色道a无线码一区v| 大尺度一区二区| 国内一区二区视频| 久久精品国产在热久久| 日本中文字幕一区二区有限公司| 夜夜爽夜夜爽精品视频| 综合激情网...| 国产精品久久国产精麻豆99网站| 国产亚洲精品精华液| 精品国产乱码久久久久久久久| 欧美日韩情趣电影| 欧美日韩国产综合一区二区 | 欧美一区欧美二区| 欧美在线观看一区| 欧美在线观看你懂的| 在线中文字幕不卡| 欧美在线观看18| 欧美男人的天堂一二区| 欧美日韩黄色影视| 91精品国产91热久久久做人人| 欧美久久久一区| 欧美日韩午夜精品| 欧美夫妻性生活| 欧美大片在线观看| 精品88久久久久88久久久| 精品国产电影一区二区| 精品国产污污免费网站入口 | 日韩精品在线一区| 久久婷婷色综合| 中日韩免费视频中文字幕| 国产精品视频yy9299一区| 中国色在线观看另类| 中文字幕一区二区三区在线观看| 成人免费一区二区三区视频| 亚洲老妇xxxxxx| 亚洲伊人色欲综合网| 日本视频一区二区三区| 不卡视频在线观看| av电影在线观看不卡| 91成人看片片| 日韩亚洲欧美中文三级| 久久日韩精品一区二区五区| 国产精品全国免费观看高清| 一区二区三区精品视频| 奇米精品一区二区三区在线观看一 | 在线亚洲高清视频| 欧美一区二区三区精品| 国产日产精品一区| 亚洲自拍与偷拍| 久久99精品久久久久久久久久久久 | 午夜一区二区三区视频| 久久99精品久久久久久久久久久久 | 日韩欧美高清dvd碟片| 久久久久久99精品| 亚洲免费观看高清完整版在线 | 国产一区在线看| 91久久精品国产91性色tv| 欧美高清视频不卡网| 国产亚洲欧美中文| 婷婷一区二区三区| www.久久久久久久久| 欧美精品粉嫩高潮一区二区| 国产女同互慰高潮91漫画| 午夜精品久久久久久| 国产精品白丝av| 欧美日韩精品一二三区| 亚洲国产精品激情在线观看| 午夜精品爽啪视频| 成人黄色在线网站| 欧美电影精品一区二区| 尤物在线观看一区| 国产精品一区二区你懂的| 欧美日韩中字一区| 国产精品动漫网站| 国产一区二区三区四| 欧美三级电影网站| 国产精品久久久久影院老司| 蜜臀av一区二区在线免费观看| 色婷婷综合久久久中文字幕| 国产午夜亚洲精品羞羞网站| 午夜精品成人在线视频| 91视频com| 中文字幕av一区二区三区免费看| 婷婷久久综合九色综合绿巨人 | 欧美老年两性高潮| 自拍偷拍亚洲激情| 成人黄色av电影| 久久欧美一区二区| 国模套图日韩精品一区二区 | 波多野结衣精品在线| 久久久亚洲精品石原莉奈| 日韩极品在线观看| 欧美性视频一区二区三区| 亚洲欧美日韩综合aⅴ视频| 国产99精品国产| 国产人久久人人人人爽| 韩国中文字幕2020精品| 91精品国产91久久久久久一区二区| 亚洲一区二区三区自拍| 色噜噜狠狠成人网p站| 国产精品国产三级国产专播品爱网 | 日韩欧美一区在线观看| 亚洲国产视频a| 欧美性猛片xxxx免费看久爱| 亚洲欧美日韩人成在线播放| 不卡欧美aaaaa| 自拍偷拍亚洲综合| 91日韩在线专区| 亚洲猫色日本管| 色素色在线综合| 亚洲国产精品一区二区久久恐怖片| 在线视频中文字幕一区二区| 亚洲综合色成人| 欧美酷刑日本凌虐凌虐| 亚洲成人在线免费| 69精品人人人人| 久久国产精品99久久久久久老狼| 日韩欧美久久一区| 国产真实精品久久二三区| 久久只精品国产| 成人少妇影院yyyy| 亚洲视频你懂的| 欧美午夜理伦三级在线观看| 亚洲国产成人porn| 717成人午夜免费福利电影| 国产精品免费免费| 亚洲成av人**亚洲成av**| 成人污污视频在线观看| 精品国精品自拍自在线| 国产在线观看一区二区| 国产欧美一区二区精品婷婷| 福利一区二区在线| 亚洲欧美精品午睡沙发| 精品视频1区2区| 免费的成人av| 国产精品情趣视频| 欧美日韩免费观看一区三区| 麻豆高清免费国产一区| 欧美日韩国产小视频| 国内精品自线一区二区三区视频| 亚洲六月丁香色婷婷综合久久|