Here you can find the source of buildUrl(String host, String target)
Build the remote url:<br> http://host:8080/voxworx/target
Parameter | Description |
---|---|
host | The spring host server |
target | The url suffix which defines the remoting service |
static String buildUrl(String host, String target)
//package com.java2s; //License from project: Open Source License public class Main { private static final int SERVICE_PORT = 8080; private static final String SERVLET_CONTEXT = "voxworx"; /**/*from www . j av a 2 s . c o m*/ * Build the remote url:<br> * http://host:8080/voxworx/target * @param host The spring host server * @param target The url suffix which defines the remoting service * @return */ static String buildUrl(String host, String target) { StringBuilder s = new StringBuilder(); s.append("http://"); s.append(host); s.append(":"); s.append(SERVICE_PORT); s.append("/"); s.append(SERVLET_CONTEXT); s.append("/"); s.append(target); return s.toString(); } }