Class ShareBean

java.lang.Object
se.datadosen.net.JettyHttpServer
se.datadosen.jalbum.ShareBean
All Implemented Interfaces:
EventListener, PortMappingListener

public class ShareBean extends JettyHttpServer implements PortMappingListener
  • Field Details

  • Constructor Details

    • ShareBean

      public ShareBean()
  • Method Details

    • getLogType

      public String getLogType()
    • setLogType

      public void setLogType(String logType)
    • getLogFileName

      public String getLogFileName()
    • setLogFileName

      public void setLogFileName(String logFileName)
    • getLogFormatString

      public String getLogFormatString()
    • setLogFormatString

      public void setLogFormatString(String formatString)
    • 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

      public void start() throws Exception
      Description copied from class: JettyHttpServer
      start
      Overrides:
      start in class JettyHttpServer
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Description copied from class: JettyHttpServer
      stop
      Overrides:
      stop in class JettyHttpServer
      Throws:
      Exception
    • ensurePortMapping

      public void ensurePortMapping() throws net.sbbi.upnp.messages.UPNPResponseException, IOException
      Throws:
      net.sbbi.upnp.messages.UPNPResponseException
      IOException
    • getExternalAddress

      public String getExternalAddress() throws net.sbbi.upnp.messages.UPNPResponseException, IOException
      Throws:
      net.sbbi.upnp.messages.UPNPResponseException
      IOException
    • getHostName

      public String getHostName()
    • setHostName

      public void setHostName(String hostName)
    • albumAccessTest

      public boolean albumAccessTest()
    • saveSettings

      public void saveSettings() throws IOException
      Throws:
      IOException
    • loadSettings

      public void loadSettings() throws IOException, ElementException
      Throws:
      IOException
      ElementException
    • addStatusListener

      public void addStatusListener(StatusListener l)
      Event dispatching code
    • removeStatusListener

      public void removeStatusListener(StatusListener l)
    • fireStatusChanged

      protected void fireStatusChanged(String msg)
    • statusChanged

      public void statusChanged(String msg)
      statusChanged
      Specified by:
      statusChanged in interface PortMappingListener
      Parameters:
      msg - String