01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19: /*
20: * AddressURL.java
21: *
22: * Created on October 10, 2006, 1:31 PM
23: *
24: * To change this template, choose Tools | Template Manager
25: * and open the template in the editor.
26: */
27:
28: package org.netbeans.modules.wsdlextensions.ftp.validator;
29:
30: import org.netbeans.modules.wsdlextensions.ftp.FTPComponent;
31: import java.util.Collection;
32: import org.netbeans.modules.xml.xam.spi.Validator;
33: import org.netbeans.modules.xml.xam.spi.Validator.ResultItem;
34:
35: /**
36: *
37: * @author jfu
38: */
39: public interface AddressURL {
40: public static final String FTP_URL_PLACEHOLDER = "ftp://[ftp_user]:[ftp_password]@[ftp_host]:[ftp_port]";
41: public static final String PROXY_URL_PLACEHOLDER = "[proxy_protocol]://[proxy_user]:[proxy_password]@[proxy_host]:[proxy_port]";
42: public static final String FTP_URL_PREFIX = "ftp://";
43: public static final String SOCKS4_URL_PREFIX = "socks4://";
44: public static final String SOCKS5_URL_PREFIX = "socks5://";
45:
46: public static final String URL_LOGIN_HOST_DELIM = "@";
47: public static final String URL_COLON_DELIM = ":";
48: public static final String URL_PATH_DELIM = "/";
49:
50: public String getScheme();
51:
52: public void setScheme(String scheme);
53:
54: public String getUser();
55:
56: public void setUser(String user);
57:
58: public String getPassword();
59:
60: public void setPassword(String password);
61:
62: public String getHost();
63:
64: public void setHost(String host);
65:
66: public String getPort();
67:
68: public void setPort(String port);
69:
70: public boolean parse(Collection<ResultItem> results,
71: Validator validator, FTPComponent target);
72: }
|