Java URL Query Build getQueryUrl(String word)

Here you can find the source of getQueryUrl(String word)

Description

get Query Url

License

Apache License

Declaration

public static String getQueryUrl(String word)
            throws UnsupportedEncodingException 

Method Source Code

//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
}

Related

  1. getQueryString(final Map parameters)
  2. getQueryString(final Map parameters, final boolean encode)
  3. getQueryString(Map parameters)
  4. getQueryString(Map parameters)
  5. getQueryString(String url)
  6. getQueryUrl(String word, Integer page)
  7. getQueryURL(URL baseUrl, String[] parameters)
  8. getQueryValues(String input)
  9. mapToQueryString(Map parameters, String charSet)