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.*;

Service interface with public versions of the protected java.net.URLStreamHandler methods.

The important differences between this interface and the URLStreamHandler class are that the setURL method is absent and the parseURL method takes a URLStreamHandlerSetter object as the first argument. Classes implementing this interface must call the setURL method on the URLStreamHandlerSetter object received in the parseURL method instead of URLStreamHandler.setURL to avoid a SecurityException.

Version:
$Id: 4a453f61b9acdc6449df389b2a0538d0ccb33ed2 $
See also:
AbstractURLStreamHandlerService
ThreadSafe:
public interface URLStreamHandlerService {

See also:
"java.net.URLStreamHandler.openConnection"
Parse a URL. This method is called by the URLStreamHandler proxy, instead of java.net.URLStreamHandler.parseURL, passing a URLStreamHandlerSetter object.

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

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

See also:
"java.net.URLStreamHandler.equals(URL, URL)"
	public boolean equals(URL u1URL u2);

See also:
"java.net.URLStreamHandler.getDefaultPort"
	public int getDefaultPort();

See also:
"java.net.URLStreamHandler.getHostAddress"

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

See also:
"java.net.URLStreamHandler.hostsEqual"
	public boolean hostsEqual(URL u1URL u2);

See also:
"java.net.URLStreamHandler.sameFile"
	public boolean sameFile(URL u1URL u2);
New to GrepCode? Check out our FAQ X