Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) OSGi Alliance (2002, 2012). All Rights Reserved.
   * 
   * 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.
  */
 
 package org.osgi.service.url;
 
 import java.net.*;

Abstract implementation of the URLStreamHandlerService interface. All the methods simply invoke the corresponding methods on java.net.URLStreamHandler except for parseURL and setURL, which use the URLStreamHandlerSetter parameter. Subclasses of this abstract class should not need to override the setURL and parseURL(URLStreamHandlerSetter,...) methods.

Version:
$Id: b86572a4f13b7bb4a343ac4d6b6fb3487e01bd31 $
ThreadSafe:
 
 public abstract class AbstractURLStreamHandlerService extends URLStreamHandler implements URLStreamHandlerService {

See also:
"java.net.URLStreamHandler.openConnection"
 
 	public abstract URLConnection openConnection(URL uthrows java.io.IOException;

The URLStreamHandlerSetter object passed to the parseURL method.
 
 	protected volatile URLStreamHandlerSetter	realHandler;

Parse a URL using the URLStreamHandlerSetter object. This method sets the realHandler field with the specified URLStreamHandlerSetter object and then calls parseURL(URL,String,int,int).

Parameters:
realHandler The object on which the setURL method must be invoked for the specified URL.
See also:
"java.net.URLStreamHandler.parseURL"
 
 	public void parseURL(URLStreamHandlerSetter realHandlerURL uString specint startint limit) {
 		this. = realHandler;
 		parseURL(uspecstartlimit);
 	}

This method calls super.toExternalForm.

See also:
"java.net.URLStreamHandler.toExternalForm"
 
 	public String toExternalForm(URL u) {
 		return super.toExternalForm(u);
 	}

This method calls super.equals(URL,URL).

See also:
"java.net.URLStreamHandler.equals(URL,URL)"
 
 	public boolean equals(URL u1URL u2) {
 		return super.equals(u1u2);
 	}

This method calls super.getDefaultPort.

See also:
"java.net.URLStreamHandler.getDefaultPort"
 
 	public int getDefaultPort() {
 		return super.getDefaultPort();
 	}

This method calls super.getHostAddress.

See also:
"java.net.URLStreamHandler.getHostAddress"
 
 	public InetAddress getHostAddress(URL u) {
 		return super.getHostAddress(u);
 	}

This method calls super.hashCode(URL).

See also:
"java.net.URLStreamHandler.hashCode(URL)"
 
 	public int hashCode(URL u) {
		return super.hashCode(u);
	}

This method calls super.hostsEqual.

See also:
"java.net.URLStreamHandler.hostsEqual"
	public boolean hostsEqual(URL u1URL u2) {
		return super.hostsEqual(u1u2);
	}

This method calls super.sameFile.

See also:
"java.net.URLStreamHandler.sameFile"
	public boolean sameFile(URL u1URL u2) {
		return super.sameFile(u1u2);
	}

This method calls realHandler.setURL(URL,String,String,int,String,String).

Deprecated:
This method is only for compatibility with handlers written for JDK 1.1.
See also:
"java.net.URLStreamHandler.setURL(URL,String,String,int,String,String)"
	protected void setURL(URL uString protoString hostint portString fileString ref) {
		.setURL(uprotohostportfileref);
	}

This method calls realHandler.setURL(URL,String,String,int,String,String,String,String) .

See also:
"java.net.URLStreamHandler.setURL(URL,String,String,int,String,String,String,String)"
	protected void setURL(URL uString protoString hostint portString authString userString pathString queryString ref) {
		.setURL(uprotohostportauthuserpathqueryref);
	}
New to GrepCode? Check out our FAQ X