Tabnine Logo
MessicConfig.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.messic.configuration.MessicConfig
constructor

Best Java code snippets using org.messic.configuration.MessicConfig.<init> (Showing top 8 results out of 315)

origin: spheras/messic

private Proxy getProxy()
{
  MessicConfig mc = new MessicConfig();
  String url = (String) mc.getProxyUrl();
  String port = (String) mc.getProxyPort();
  if ( url != null && port != null && url.length() > 0 && port.length() > 0 )
  {
    SocketAddress addr = new InetSocketAddress( url, Integer.valueOf( port ) );
    Proxy proxy = new Proxy( Proxy.Type.HTTP, addr );
    return proxy;
  }
  return null;
}
origin: spheras/messic

  MessicConfig mc = new MessicConfig();
  if ( !mc.isCheckUpdateEnabled() )
Proxy proxy = getProxy( new MessicConfig() );
origin: spheras/messic

/**
 * Do some checks before start. Return true if everything is OK. false is something is wrong and we cannot start.
 * 
 * @return result
 */
private boolean checkBeforeStart()
{
  // 1st- check if the destination folder exist
  MessicConfig mc = new MessicConfig();
  String paramMusicFolder = mc.getMusicFolder();
  File fMusicFolder = new File( paramMusicFolder );
  final Properties ml = Util.getMultilanguage();
  if ( !fMusicFolder.exists() )
  {
    int result =
      JOptionPane.showConfirmDialog( ProcessMonitorWindow.this,
                      ml.getProperty( "messic-check-musicfolder-noexist" ), "",
                      JOptionPane.YES_NO_OPTION );
    if ( result == JOptionPane.YES_OPTION )
    {
      return true;
    }
    else
    {
      return false;
    }
  }
  return true;
}
origin: spheras/messic

public void actionPerformed( ActionEvent e )
  MessicConfig mc = new MessicConfig();
  Properties p = mc.getConfiguration();
  String storedMusicFolder = p.getProperty( MessicConfig.MESSIC_MUSICFOLDER );
origin: spheras/messic

if ( ffolder.exists() )
  MessicConfig mc = new MessicConfig();
  mc.getConfiguration().setProperty( MessicConfig.MESSIC_MUSICFOLDER, folder );
  mc.save();
origin: spheras/messic

MessicConfig mc = new MessicConfig( true );
Properties p = mc.getConfiguration();
p.setProperty( MessicConfig.MESSIC_MUSICFOLDER,
origin: spheras/messic

MessicConfig mc = new MessicConfig();
origin: spheras/messic

MessicConfig sc = new MessicConfig();
String proxyURL = sc.getProxyUrl();
String proxyPort = sc.getProxyPort();
  sc = new MessicConfig();
org.messic.configurationMessicConfig<init>

Javadoc

Constructor. RecreateDefault param flag indicates if the current config should be removed and create a new one with the default options.

Popular methods of MessicConfig

  • getConfiguration
  • getProxyPort
    Return the proxy port that should be used by messic
  • getProxyUrl
    Return the proxy url that should be used by messic
  • getCurrentVersion
  • getHttpPort
    Return the http port configured, null if not configured
  • getHttpsPort
    Return the https port configured, null if not configured
  • getMessicTimeout
    Return the timeout for the messic web application
  • isMessicSecureProtocol
    Return if messic is configured to use a secure protocol
  • checkCurrentport
  • getMusicFolder
    Return the configured music folder
  • isCheckUpdateEnabled
  • readInputStream
    Read an inputstream and return a byte[] with the whole content of the readed at the inputstream
  • isCheckUpdateEnabled,
  • readInputStream,
  • save,
  • setConfiguration

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now