com.sun.dtv.locator
Class NetworkBoundLocator
java.lang.Object
com.sun.dtv.locator.URLLocator
com.sun.dtv.locator.EntityLocator
com.sun.dtv.locator.NetworkBoundLocator
- All Implemented Interfaces:
- TransportDependentLocator, Locator
public abstract class NetworkBoundLocator
- extends EntityLocator
- implements TransportDependentLocator
Locator referring to entities that are network bound.
Method Summary |
String |
toExternalForm()
Generates a canonical, string-based representation of this
Locator . |
NetworkBoundLocator
public NetworkBoundLocator(String url)
throws InvalidLocatorException
- Create a locator from the given url.
- Parameters:
url
- the url string
- Throws:
InvalidLocatorException
- if the locator
can not be created from the provided parameters.
toExternalForm
public String toExternalForm()
- Generates a canonical, string-based representation of this
Locator
. The string returned may be entirely
platform-dependent. If two locators have identical external
forms, they refer to the same resource. However, two locators
that refer to the same resource may have different external
forms.
This method returns the canonical
form of the string that was used to create the Locator (via
LocatorFactory.createLocator()
). In generating
canonical external forms, the implementation will make its best
effort at resolving locators to one-to-one relationships
with the resources that they reference.
The result of this method can be used to create new
Locator
instances as well as other types of
locators, such as JMF MediaLocator
s and
URL
s.
- Specified by:
toExternalForm
in interface Locator
- Overrides:
toExternalForm
in class EntityLocator
- Returns:
- A string-based representation of this Locator.
- See Also:
Locator.toExternalForm()
Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.
U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Use of this document is subject to license terms.