Android Open Source - edu-video-client Rest Config






From Project

Back to project page edu-video-client.

License

The source code is released under:

Apache License

If you think the Android project edu-video-client 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

package com.ngm.explaintome;
//from ww  w. ja  va2s. co m
import java.net.URI;
import java.net.URISyntaxException;

public class RestConfig {
  public static final String HOST = "10.0.201.58";
  public static final int PORT = 8080;
  private static final String SCHEME = "http";
  private static final String TAGS = "tags";
  private static final String VIDEOS = "videos";
  private static final String SERVER_URL = SCHEME + "://" + HOST + ":" + PORT + "/";

  public URI get??gsUri() {
    try {
      // XXX FIXME use proper constructors with different parts! No time
      // to figure out what is wrong when calling one of them..
      return new URI(SERVER_URL + TAGS);
    } catch (URISyntaxException e) {
      throw new RuntimeException();
    }
  }

  public URI getVideosUri(String query) {
    try {
      return new URI(SERVER_URL + VIDEOS + query );
    } catch (URISyntaxException e) {
      throw new RuntimeException();
    }
  }

}




Java Source Code List

com.ngm.exlpaintome.video.VideoControllerView.java
com.ngm.explaintome.BaseActivity.java
com.ngm.explaintome.BaseListActivity.java
com.ngm.explaintome.BrowseActivity.java
com.ngm.explaintome.ColoredSearchView.java
com.ngm.explaintome.Constants.java
com.ngm.explaintome.ExplainActivity.java
com.ngm.explaintome.FilterableEntity.java
com.ngm.explaintome.FirstActivity.java
com.ngm.explaintome.FixedPagerAdapter.java
com.ngm.explaintome.RestConfig.java
com.ngm.explaintome.VideoViewActivity.java
com.ngm.explaintome.VideosActivity.java
com.ngm.explaintome.YoutubeUrlAsyncTask.java
com.ngm.explaintome.data.Answer.java
com.ngm.explaintome.data.ModelElement.java
com.ngm.explaintome.data.QuestionType.java
com.ngm.explaintome.data.Question.java
com.ngm.explaintome.data.Tag.java
com.ngm.explaintome.data.Video.java
com.ngm.explaintome.modules.ModuleProvider.java
com.ngm.explaintome.service.Callback.java
com.ngm.explaintome.service.MockRestActions.java
com.ngm.explaintome.service.RestActionsImpl.java
com.ngm.explaintome.service.RestActions.java