Android Open Source - Boxee-Thumb-Remote Server Address






From Project

Back to project page Boxee-Thumb-Remote.

License

The source code is released under:

Apache License

If you think the Android project Boxee-Thumb-Remote listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/* The following code was written by Menny Even Danan
 * and is released under the APACHE 2.0 license
 *// w  ww  .  j ava 2  s . c  om
 * http://www.apache.org/licenses/LICENSE-2.0
 */
package net.evendanan.android.thumbremote;

import java.net.InetAddress;

/**
 * Holds information about a media server which announced itself in response to
 * a discovery request.
 */
public final class ServerAddress {
  private final String mType;
  private final String mVersion;
  private final String mName;
  private final boolean mAuthRequired;
  private final int mPort;
  private final InetAddress mAddr;

  public ServerAddress(String type, String version, String name, boolean authRequired, InetAddress address, int port) {
    mAddr = address;
    mVersion = version;
    mPort = port;
    mType = type;
    mName = name;
    mAuthRequired = authRequired;
  }

  public boolean valid() {
    return mPort > 0 && mAddr != null;
  }

  public String type() {
    return mType;
  }
  
  public String version(){
    return mVersion;
  }

  public String name() {
    return mName;
  }

  public boolean authRequired() {
    return mAuthRequired;
  }

  public int port() {
    return mPort;
  }

  public InetAddress address() {
    return mAddr;
  }

  public String toString() {
    return String.format("%s at %s:%d %s", mName, mAddr.getHostAddress(),
        mPort, valid() ? "" : "(broken?)");
  }
}




Java Source Code List

.HttpClientBlocking.java
com.example.android.actionbarcompat.ActionBarHelperBase.java
com.example.android.actionbarcompat.ActionBarHelperCompat.java
com.example.android.actionbarcompat.ActionBarHelperHoneycomb.java
com.example.android.actionbarcompat.ActionBarHelperICS.java
com.example.android.actionbarcompat.SimpleMenuItem.java
com.example.android.actionbarcompat.SimpleMenu.java
iharder.base64.Base64.java
net.evendanan.android.thumbremote.MediaStateListener.java
net.evendanan.android.thumbremote.RemoteApplication.java
net.evendanan.android.thumbremote.ServerAddress.java
net.evendanan.android.thumbremote.ServerConnectionListener.java
net.evendanan.android.thumbremote.ServerConnector.java
net.evendanan.android.thumbremote.ServerRemote.java
net.evendanan.android.thumbremote.ServerStatePoller.java
net.evendanan.android.thumbremote.ServerStateUrlsProvider.java
net.evendanan.android.thumbremote.ServerState.java
net.evendanan.android.thumbremote.Settings.java
net.evendanan.android.thumbremote.ShakeListener.java
net.evendanan.android.thumbremote.UiView.java
net.evendanan.android.thumbremote.boxee.BoxeeConnector.java
net.evendanan.android.thumbremote.boxee.BoxeeDiscovererThread.java
net.evendanan.android.thumbremote.network.HttpBlocking.java
net.evendanan.android.thumbremote.network.HttpRequest.java
net.evendanan.android.thumbremote.network.Response.java
net.evendanan.android.thumbremote.network.ReusableHttpClientBlocking.java
net.evendanan.android.thumbremote.service.DoServerRemoteAction.java
net.evendanan.android.thumbremote.service.ServerRemoteService.java
net.evendanan.android.thumbremote.service.State.java
net.evendanan.android.thumbremote.ui.FixedViewFlipper.java
net.evendanan.android.thumbremote.ui.FragmentAlertDialogSupport.java
net.evendanan.android.thumbremote.ui.HelpUiActivity.java
net.evendanan.android.thumbremote.ui.RemoteUiActivity.java
net.evendanan.android.thumbremote.ui.SettingsActivity.java