Package org.wiztools.restclient

Examples of org.wiztools.restclient.RequestBean


    /**
     * Inserts the trace server URL.
     */
    public void insertTraceServerUrl()
    {
        RequestBean request = (RequestBean) restMain.getView().getRequestFromUI();

        if (request.getUrl() != null)
        {
            int ret = JOptionPane.showConfirmDialog(restMain.getFrame(), "URL field not empty. Overwrite?",
                "Request URL not empty", JOptionPane.YES_NO_OPTION);

            if (ret == JOptionPane.NO_OPTION)
            {
                return;
            }
        }

        try
        {
            request.setUrl(new URL("http://localhost:" + TraceServer.PORT + "/"));
        }
        catch (MalformedURLException ex)
        {
            assert true : ex;
        }
View Full Code Here


        jm_tools.add(jmi_server_stop);
       
        JMenuItem jmi_server_fill_url = new JMenuItem("Insert Trace Server URL");
        jmi_server_fill_url.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                RequestBean request = (RequestBean) view.getRequestFromUI();
                if(request.getUrl() != null){
                    int ret = JOptionPane.showConfirmDialog(frame,
                            "URL field not empty. Overwrite?",
                            "Request URL not empty",
                            JOptionPane.YES_NO_OPTION);
                    if(ret == JOptionPane.NO_OPTION){
                        return;
                    }
                }
                try {
                    request.setUrl(new URL("http://localhost:" + TraceServer.PORT + "/"));
                } catch (MalformedURLException ex) {
                    assert true: ex;
                }
                view.setUIFromRequest(request);
            }
View Full Code Here

TOP

Related Classes of org.wiztools.restclient.RequestBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.