Package se.datadosen.jalbum
Class ShareBean
java.lang.Object
se.datadosen.net.JettyHttpServer
se.datadosen.jalbum.ShareBean
- All Implemented Interfaces:
EventListener
,PortMappingListener
-
Field Summary
Fields inherited from class se.datadosen.net.JettyHttpServer
connector, PING_SERVLET_URI, server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Event dispatching codeboolean
void
protected void
fireStatusChanged
(String msg) boolean
boolean
void
void
void
void
setAutoStart
(boolean autoStart) void
setDoPortMapping
(boolean doPortMapping) void
setHostName
(String hostName) void
setLogFileName
(String logFileName) void
setLogFormatString
(String formatString) void
setLogType
(String logType) void
start()
startvoid
statusChanged
(String msg) statusChangedvoid
stop()
stopvoid
-
Field Details
-
NO_LOGGING
- See Also:
-
CONSOLE_LOGGING
- See Also:
-
FILE_LOGGING
- See Also:
-
-
Constructor Details
-
ShareBean
public ShareBean()
-
-
Method Details
-
getLogType
-
setLogType
-
getLogFileName
-
setLogFileName
-
getLogFormatString
-
setLogFormatString
-
updateLogger
public void updateLogger() -
isAutoStart
public boolean isAutoStart() -
setAutoStart
public void setAutoStart(boolean autoStart) -
isDoPortMapping
public boolean isDoPortMapping() -
setDoPortMapping
public void setDoPortMapping(boolean doPortMapping) -
start
Description copied from class:JettyHttpServer
start- Overrides:
start
in classJettyHttpServer
- Throws:
Exception
-
stop
Description copied from class:JettyHttpServer
stop- Overrides:
stop
in classJettyHttpServer
- Throws:
Exception
-
ensurePortMapping
- Throws:
net.sbbi.upnp.messages.UPNPResponseException
IOException
-
getExternalAddress
- Throws:
net.sbbi.upnp.messages.UPNPResponseException
IOException
-
getHostName
-
setHostName
-
albumAccessTest
public boolean albumAccessTest() -
saveSettings
- Throws:
IOException
-
loadSettings
- Throws:
IOException
ElementException
-
addStatusListener
Event dispatching code -
removeStatusListener
-
fireStatusChanged
-
statusChanged
statusChanged- Specified by:
statusChanged
in interfacePortMappingListener
- Parameters:
msg
- String
-