Package com.globalmentor.io
Class URIAccessibleModel
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- com.globalmentor.io.DefaultURIAccessible
-
- com.globalmentor.io.URIAccessibleModel
-
- All Implemented Interfaces:
PropertyBindable
,PropertyConstrainable
,URIAccessible
,URIInputStreamable
,URIOutputStreamable
,Model
- Direct Known Subclasses:
ResourceModel
public abstract class URIAccessibleModel extends DefaultURIAccessible implements Model
A model that keeps track of a base URI and knows how to access input streams based upon URIs.- Author:
- Garret Wilson
-
-
Field Summary
-
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Fields inherited from interface com.globalmentor.model.Model
MODEL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description URIAccessibleModel()
Default constructor.URIAccessibleModel(URIInputStreamable uriInputStreamable)
URI input stream locator constructor.URIAccessibleModel(URIOutputStreamable uriOutputStreamable)
URI output stream locator constructor.URIAccessibleModel(java.net.URI baseURI)
Base URI constructor.URIAccessibleModel(java.net.URI baseURI, URIInputStreamable uriInputStreamable)
Base URI and input stream locator constructor.URIAccessibleModel(java.net.URI baseURI, URIInputStreamable uriInputStreamable, URIOutputStreamable uriOutputStreamable)
Full constructor.URIAccessibleModel(java.net.URI baseURI, URIOutputStreamable uriOutputStreamable)
Base URI and output stream locator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getBaseURI()
EventListenerManager
getEventListenerManager()
-
Methods inherited from class com.globalmentor.io.DefaultURIAccessible
getDefaultURIAccessible, getInputStream, getOutputStream, getPassword, getUsername, setPassword, setUsername
-
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Constructor Detail
-
URIAccessibleModel
public URIAccessibleModel()
Default constructor.
-
URIAccessibleModel
public URIAccessibleModel(java.net.URI baseURI)
Base URI constructor.- Parameters:
baseURI
- The base URI, ornull
if unknown.
-
URIAccessibleModel
public URIAccessibleModel(URIInputStreamable uriInputStreamable)
URI input stream locator constructor.- Parameters:
uriInputStreamable
- The implementation to use for accessing a URI for input, ornull
if the default implementation should be used.
-
URIAccessibleModel
public URIAccessibleModel(URIOutputStreamable uriOutputStreamable)
URI output stream locator constructor.- Parameters:
uriOutputStreamable
- The implementation to use for accessing a URI for output, ornull
if the default implementation should be used.
-
URIAccessibleModel
public URIAccessibleModel(java.net.URI baseURI, URIInputStreamable uriInputStreamable)
Base URI and input stream locator constructor.- Parameters:
baseURI
- The base URI, ornull
if unknown.uriInputStreamable
- The implementation to use for accessing a URI for input, ornull
if the default implementation should be used.
-
URIAccessibleModel
public URIAccessibleModel(java.net.URI baseURI, URIOutputStreamable uriOutputStreamable)
Base URI and output stream locator constructor.- Parameters:
baseURI
- The base URI, ornull
if unknown.uriOutputStreamable
- The implementation to use for accessing a URI for output, ornull
if the default implementation should be used.
-
URIAccessibleModel
public URIAccessibleModel(java.net.URI baseURI, URIInputStreamable uriInputStreamable, URIOutputStreamable uriOutputStreamable)
Full constructor.- Parameters:
baseURI
- The base URI, ornull
if unknown.uriInputStreamable
- The implementation to use for accessing a URI for input, ornull
if the default implementation should be used.uriOutputStreamable
- The implementation to use for accessing a URI for output, ornull
if the default implementation should be used.
-
-
Method Detail
-
getEventListenerManager
public EventListenerManager getEventListenerManager()
- Returns:
- The manager of the registered event listeners.
-
getBaseURI
public java.net.URI getBaseURI()
- Returns:
- The base URI of the model, or
null
if unknown.
-
-