Searched refs:url (Results 1 - 25 of 582) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/net/URL/
H A DTestPort.java34 URL url = null;
36 url = new URL("ftp", "java.sun.com", -20, "/pub/");
38 url = null;
40 if (url != null)
43 url = new URL("ftp://java.sun.com:-20/pub/");
45 url = null;
47 if (url != null)
H A DRelativeURLTest.java35 URL url = new URL(base, "../images/dummy/../././foo.gif");
37 if (!url.toString().equals("file:../images/foo.gif")) {
40 "got: "+url.toString());
H A DHashCode.java36 URL url = new URL("http", null, 80, "test");
37 int code = url.hashCode();
H A DURIToURLTest.java39 "mailto:mduerst@ifi.unizh.ch", // opaque url
40 "http:comp.infosystems.www.servers.unix" //opaque url
45 URL url = uri.toURL();
47 boolean schemeCheck = scheme == null? url.getProtocol() == null :
48 scheme.equals(url.getProtocol());
51 " url.protocol is " +
52 url.getProtocol());
57 ssp.equals(url.getPath());
60 " url.path is " + url
[all...]
H A DGetDefaultPort.java35 URL url = new URL ("http://www.sun.com");
37 if ((p=url.getDefaultPort ()) != 80)
H A DProtocol.java36 URL url = new URL("file://bogus/index.html");
37 URL url2 = new URL(url, "here.pl?notaspec:atall");
H A DParseURL.java34 String url = new URL(new URL("http://cnn.com"), "index.html").toExternalForm();
35 if (url.equalsIgnoreCase("http://cnn.com/index.html")) {
38 throw new RuntimeException("The result is "+url+", it should be http://cnn.com/index.html");
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/corbaname/
H A DcorbanameURLContextFactory.java26 package com.sun.jndi.url.corbaname;
28 import com.sun.jndi.url.iiop.iiopURLContextFactory;
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/iiopname/
H A DiiopnameURLContextFactory.java26 package com.sun.jndi.url.iiopname;
28 import com.sun.jndi.url.iiop.iiopURLContextFactory;
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/ldaps/
H A DldapsURLContextFactory.java26 package com.sun.jndi.url.ldaps;
28 import com.sun.jndi.url.ldap.*;
/openjdk7/jdk/src/share/classes/sun/applet/
H A DAppletResourceLoader.java37 public static Image getImage(URL url) { argument
38 return AppletViewer.getCachedImage(url);
41 public static Ref getImageRef(URL url) { argument
42 return AppletViewer.getCachedImageRef(url);
H A DAppletImageRef.java34 URL url; field in class:AppletImageRef
39 AppletImageRef(URL url) { argument
40 this.url = url;
51 Image img = Toolkit.getDefaultToolkit().createImage(new URLImageSource(url));
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/rmi/
H A DrmiURLContext.java26 package com.sun.jndi.url.rmi;
33 import com.sun.jndi.toolkit.url.GenericURLContext;
56 * Resolves the registry portion of "url" to the corresponding
60 protected ResolveResult getRootURLContext(String url, Hashtable env) argument
63 if (!url.startsWith("rmi:")) {
65 "rmiURLContext: name is not an RMI URL: " + url));
74 int i = 4; // index into url, following the "rmi:"
76 if (url.startsWith("//", i)) { // parse "//host:port"
78 int slash = url.indexOf('/', i);
80 slash = url
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DHttpCallerInfo.java47 final public URL url; field in class:HttpCallerInfo
57 this.url = old.url;
70 public HttpCallerInfo(URL url) { argument
71 this.url= url;
73 host = url.getHost();
75 int p = url.getPort();
77 port = url.getDefaultPort();
84 ia = InetAddress.getByName(url
98 HttpCallerInfo(URL url, String host, int port) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jndi/url/iiop/
H A DiiopURLContext.java26 package com.sun.jndi.url.iiop;
43 extends com.sun.jndi.toolkit.url.GenericURLContext {
65 * Return the suffix of an "iiop", "iiopname", or "corbaname" url.
68 protected Name getURLSuffix(String prefix, String url) argument
71 if (url.startsWith("iiop://") || url.startsWith("iiopname://")) {
72 IiopUrl parsedUrl = new IiopUrl(url);
74 } else if (url.startsWith("corbaname:")) {
75 CorbanameUrl parsedUrl = new CorbanameUrl(url);
78 throw new MalformedURLException("Not a valid URL: " + url);
[all...]
/openjdk7/jaxws/src/share/jaf_classes/javax/activation/
H A DURLDataSource.java48 private URL url = null; field in class:URLDataSource
56 * @param url The URL to be encapsulated in this object.
58 public URLDataSource(URL url) { argument
59 this.url = url;
78 url_conn = url.openConnection();
97 return url.getFile();
107 return url.openStream();
119 // get the url connection if it is available
120 url_conn = url
[all...]
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/
H A DSerialDatalink.java43 * java.net.URL url = rowset.getURL(1);
52 private URL url; field in class:SerialDatalink
74 * @throws SerialException if url parameter is a null
76 public SerialDatalink(URL url) throws SerialException { argument
77 if (url == null) {
80 this.url = url;
96 aURL = new URL((this.url).toString());
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/naming/namingutil/
H A DCorbanameURL.java44 * This constructor takes a corbaname: url with 'corbaname:' prefix stripped
49 String url = aURL;
53 url = Utility.cleanEscapes( url );
58 int delimiterIndex = url.indexOf( '#' );
64 url.substring( 0, delimiterIndex ) + "/";
68 corbalocString = "corbaloc:" + url.substring( 0, url.length() );
89 String result = url.substring(start) ;
110 private void copyINSURL( INSURL url ) {
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/
H A DSourceTree.java40 * @param url The URI of the source tree.
42 public SourceTree(int root, String url) argument
45 m_url = url;
/openjdk7/jdk/src/share/classes/com/sun/jndi/cosnaming/
H A DCorbanameUrl.java32 import com.sun.jndi.toolkit.url.UrlUtil;
39 * corbaname url = "corbaname:" <corbaloc_obj> ["#" <string_name>]
88 public CorbanameUrl(String url) throws MalformedURLException { argument
90 if (!url.startsWith("corbaname:")) {
91 throw new MalformedURLException("Invalid corbaname URL: " + url);
96 int addrEnd = url.indexOf('#', addrStart);
98 addrEnd = url.length();
101 stringName = UrlUtil.decode(url.substring(addrEnd+1));
103 location = url.substring(addrStart, addrEnd);
119 CorbanameUrl url
[all...]
/openjdk7/jdk/src/windows/classes/sun/misc/
H A DFileURLMapper.java41 URL url; field in class:FileURLMapper
44 public FileURLMapper (URL url) { argument
45 this.url = url;
57 String host = url.getHost();
60 String rest = url.getFile();
61 String s = host + ParseUtil.decode (url.getFile());
65 String path = url.getFile().replace('/', '\\');
/openjdk7/jdk/test/java/net/URLConnection/
H A DUNCTest.java28 URL url = new URL( args[0] );
29 URLConnection conn = url.openConnection();
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/action/
H A DActionUtilities.java40 java.net.URL url = getClass().getResource(imagePath);
41 if(url != null)
42 return new ImageIcon(url);
/openjdk7/jdk/src/share/sample/scripting/scriptpad/src/scripts/
H A Dbrowse.js60 var url = prompt("Address:");
61 if (url != null) {
62 desktop.browse(new java.net.URI(url));
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/api/
H A DEndpointAddress.java87 private URL url; field in class:EndpointAddress
94 * If {@link #url} is null, this field is null.
104 this.url = uri.toURL();
115 public EndpointAddress(String url) throws URISyntaxException { argument
116 this.uri = new URI(url);
117 this.stringForm = url;
119 this.url = new URL(url);
130 public static EndpointAddress create(String url) { argument
132 return new EndpointAddress(url);
[all...]

Completed in 101 milliseconds

1234567891011>>