Package com.biglybt.core.devices.impl
Class DeviceInternetGatewayImpl
- java.lang.Object
-
- com.biglybt.core.devices.impl.DeviceImpl
-
- com.biglybt.core.devices.impl.DeviceUPnPImpl
-
- com.biglybt.core.devices.impl.DeviceInternetGatewayImpl
-
- All Implemented Interfaces:
Device
,DeviceInternetGateway
,DeviceUPnP
,TranscodeTargetListener
public class DeviceInternetGatewayImpl extends DeviceUPnPImpl implements DeviceInternetGateway
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DeviceInternetGatewayImpl.mapping
-
Nested classes/interfaces inherited from class com.biglybt.core.devices.impl.DeviceImpl
DeviceImpl.browseLocationImpl
-
Nested classes/interfaces inherited from interface com.biglybt.core.devices.Device
Device.browseLocation
-
-
Field Summary
Fields Modifier and Type Field Description private static int
CHECK_MAPPINGS_PERIOD
private static int
CHECK_MAPPINGS_TICK_COUNT
private UPnPMapping[]
current_mappings
private UPnPPluginService[]
current_services
private boolean
mapper_enabled
(package private) static UPnPPlugin
upnp_plugin
-
Fields inherited from class com.biglybt.core.devices.impl.DeviceUPnPImpl
MY_ACF_KEY, upnp_manager
-
Fields inherited from class com.biglybt.core.devices.impl.DeviceImpl
device_files, device_files_dirty, device_files_last_mod, PP_AUTO_COPY, PP_AUTO_COPY_DEFAULT, PP_AUTO_START, PP_COPY_OUTSTANDING, PP_COPY_TO_FOLDER, PP_DONT_AUTO_HIDE, PP_EXPORTABLE, PP_FILTER_FILES, PP_IP_ADDRESS, PP_LIVENESS_DETECTABLE, PP_OD_ENABLED, PP_OD_MANUFACTURER, PP_OD_SHOWN_FTUX, PP_OD_STATE_CACHE, PP_OD_UPNP_DISC_CACHE, PP_OD_XFER_CACHE, PP_REND_CLASSIFICATION, PP_REND_SHOW_CAT, PP_RESTRICT_ACCESS, PP_TIVO_MACHINE, PR_AUTO_START_DEFAULT, TP_IP_ADDRESS
-
Fields inherited from interface com.biglybt.core.devices.Device
DT_CONTENT_DIRECTORY, DT_DISK_OPS, DT_INTERNET, DT_INTERNET_GATEWAY, DT_MEDIA_RENDERER, DT_UNKNOWN
-
Fields inherited from interface com.biglybt.core.devices.TranscodeTargetListener
CT_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeviceInternetGatewayImpl(DeviceManagerImpl _manager, UPnPDevice _device, java.util.List<UPnPWANConnection> _connections)
protected
DeviceInternetGatewayImpl(DeviceManagerImpl _manager, java.util.Map _map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<DeviceInternetGatewayImpl.mapping>
getActualMappings(UPnPPluginService service)
protected void
getDisplayProperties(java.util.List<java.lang.String[]> dp)
protected java.net.URL
getPresentationURL(UPnPDevice device)
protected java.util.Set<DeviceInternetGatewayImpl.mapping>
getRequiredMappings()
protected boolean
updateFrom(DeviceImpl _other, boolean _is_alive)
protected void
updateStatus(int tick_count)
-
Methods inherited from class com.biglybt.core.devices.impl.DeviceUPnPImpl
associate, browseReceived, canAssociate, canFilterFilesView, canRestrictAccess, destroy, fileAdded, fileAdded, fileChanged, fileRemoved, generate, getAccessRestriction, getACFKey, getAddress, getBrowseLocations, getDisplayName, getFilterFilesView, getImageID, getImageIDs, getLocation, getMimeType, getStreamURL, getStreamURL, getUPnPDevice, getUPnPDeviceManager, initialise, isBrowsable, isLivenessDetectable, isVisible, isVisible, resetUPNPAV, setAccessRestriction, setAddress, setCategories, setFilterFilesView, setTags, setUPnPDevice, setupStreamXCode, syncCategoriesAndTags, UPnPInitialised
-
Methods inherited from class com.biglybt.core.devices.impl.DeviceImpl
addDP, addDP, addDP, addDP, addDP, addDP, addListener, addListener, alive, allocateFile, allocateUniqueFileName, canRemove, close, dead, deleteFile, exportToBEncodedMap, fileDirty, fireChanged, generateTT, getAlwaysCacheFiles, getAutoShareToTagID, getBlankProfile, getClassification, getDefaultTranscodeProfile, getDevice, getDeviceClassification, getDeviceFile, getDevicesDir, getDirectTranscodeProfiles, getDisplayProperties, getError, getFileCount, getFiles, getID, getInfo, getLastSeen, getManager, getName, getPersistentBooleanProperty, getPersistentIntProperty, getPersistentLongProperty, getPersistentMapProperty, getPersistentStringListProperty, getPersistentStringProperty, getPersistentStringProperty, getRendererSpecies, getSecondaryID, getShortDescription, getStatus, getString, getTranscodeFile, getTranscodeProfiles, getTranscodeProfiles, getTranscodeRequirement, getTransientProperty, getTransientProperty, getTTDisplayProperties, getType, getVuzeFile, getWikiURL, getWorkingDirectory, getWorkingDirectory, importFromBEncodedMapStatic, isAlive, isAudioCompatible, isAutoHidden, isBusy, isExportable, isGenericUSB, isHidden, isManual, isNameAutomatic, isNonSimple, isRSSPublishEnabled, isTagged, isTranscoding, loadDeviceFile, log, log, lookupFile, remove, removeListener, removeListener, removePersistentProperty, requestAttention, resetWorkingDirectory, revertFileName, saveDeviceFile, setAlwaysCacheFiles, setAutoHidden, setAutoShareToTagID, setBusy, setCanRemove, setDefaultTranscodeProfile, setDirty, setDirty, setError, setExportable, setGenericUSB, setHidden, setImageID, setInfo, setName, setPersistentBooleanProperty, setPersistentIntProperty, setPersistentLongProperty, setPersistentMapProperty, setPersistentStringListProperty, setPersistentStringProperty, setRSSPublishEnabled, setSecondaryID, setTagged, setTranscodeRequirement, setTranscoding, setTransientProperty, setTransientProperty, setWorkingDirectory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.devices.Device
addListener, alive, canRemove, getAddress, getBrowseLocations, getClassification, getDirectTranscodeProfiles, getDisplayProperties, getError, getID, getImageID, getImageIDs, getInfo, getName, getShortDescription, getStatus, getString, getTransientProperty, getType, getVuzeFile, getWikiURL, isAlive, isBrowsable, isBusy, isExportable, isGenericUSB, isHidden, isLivenessDetectable, isManual, isNameAutomatic, isTagged, remove, removeListener, requestAttention, setAddress, setCanRemove, setExportable, setGenericUSB, setHidden, setImageID, setName, setTagged, setTransientProperty
-
-
-
-
Field Detail
-
CHECK_MAPPINGS_PERIOD
private static final int CHECK_MAPPINGS_PERIOD
- See Also:
- Constant Field Values
-
CHECK_MAPPINGS_TICK_COUNT
private static final int CHECK_MAPPINGS_TICK_COUNT
- See Also:
- Constant Field Values
-
upnp_plugin
static UPnPPlugin upnp_plugin
-
mapper_enabled
private boolean mapper_enabled
-
current_services
private UPnPPluginService[] current_services
-
current_mappings
private UPnPMapping[] current_mappings
-
-
Constructor Detail
-
DeviceInternetGatewayImpl
protected DeviceInternetGatewayImpl(DeviceManagerImpl _manager, UPnPDevice _device, java.util.List<UPnPWANConnection> _connections)
-
DeviceInternetGatewayImpl
protected DeviceInternetGatewayImpl(DeviceManagerImpl _manager, java.util.Map _map) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
updateFrom
protected boolean updateFrom(DeviceImpl _other, boolean _is_alive)
- Overrides:
updateFrom
in classDeviceUPnPImpl
-
updateStatus
protected void updateStatus(int tick_count)
- Overrides:
updateStatus
in classDeviceImpl
-
getPresentationURL
protected java.net.URL getPresentationURL(UPnPDevice device)
- Overrides:
getPresentationURL
in classDeviceUPnPImpl
-
getRequiredMappings
protected java.util.Set<DeviceInternetGatewayImpl.mapping> getRequiredMappings()
-
getActualMappings
protected java.util.Set<DeviceInternetGatewayImpl.mapping> getActualMappings(UPnPPluginService service)
-
getDisplayProperties
protected void getDisplayProperties(java.util.List<java.lang.String[]> dp)
- Overrides:
getDisplayProperties
in classDeviceUPnPImpl
-
-