Here you can find the source of getQueryUrl(String word)
public static String getQueryUrl(String word) throws UnsupportedEncodingException
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class Main { private static final String URL_HOST = "http://ec2-54-200-144-107.us-west-2.compute.amazonaws.com:3000"; public static String getQueryUrl(String word) throws UnsupportedEncodingException { return URL_HOST + "/pl?key=" + URLEncoder.encode(word, "UTF-8"); }//from w ww. j a v a 2s.c om }