/*
(non-Javadoc)
@see com.popbill.api.FaxService#getURL(java.lang.String, java.lang.String)
351517
@Override
	public String getURL(String corpNum, String TOGO) throws PopbillException {
		return getURL(corpNum, null, TOGO);
	}
565098
public String getRedirectUrl() throws XMLStreamException, IOException {
		String url = this.settings.getIdpSsoTargetUrl();
		url += "?SAMLRequest=";

		url += URLEncoder.encode(this.getXmlBase64Request(), "UTF-8");

		if (this.parameters != null) {
			for (Map.Entry<String, String> param : this.parameters.entrySet()) {
				String key = URLEncoder.encode(param.getKey(), "UTF-8");
				String val = URLEncoder.encode(param.getValue(), "UTF-8");
				url += "&" + key + "=" + val;
			}
		}

		return url;
	}
1106654
public static String getHostFromURL(String url) {
		URL u = toURL(url);
		String host = (u == null) ? "" : u.getHost();
		return host;
	}
470502
public String get(String url) throws AuthenticationException, ApiException {
		return performRequest(url, "GET", null, null, null);
	}
1148950
@Override
	public String sendFAX(String corpNum, String sendNum, String receiveNum,
			String receiveName, File[] files, Date reserveDT, String userID,
			String title) throws PopbillException {
		
		Receiver receiver = new Receiver();
		receiver.setReceiveNum(receiveNum);
		receiver.setReceiveName(receiveName);
		
		return requestFax(corpNum, sendNum, null, new Receiver[]{receiver}, 
				files, reserveDT, userID, false, title, null);
	}
1272369
@Override
	public String getEPrintURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getEPrintURL(CorpNum, MgtKey, null);
	}
741687
public java.lang.String getSourceUrl() {
    java.lang.Object ref = sourceUrl_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      sourceUrl_ = s;
      return s;
    }
  }
928429
@Override
	public FaxResult[] getFaxResult(String corpNum, String receiptNum)
			throws PopbillException {
		if (receiptNum == null)
			throw new PopbillException(-99999999, "접수번호가 입력되지 않았습니다.");
		if (receiptNum.length() != 18)
			throw new PopbillException(-99999999, "접수번호가 올바르지 않았습니다.");

		return httpget("/FAX/" + receiptNum, corpNum, null,
				FaxResult[].class);
	}
580516
public static String getUrl(final String url) throws Exception {
        return getUrl(new URL(url), null, null);
    }
1253724
public static String getURL(URI uri) {
        final StringBuilder buffer = new StringBuilder();
        buffer.append(uri.getPath());
        
        String query = uri.getQuery();
        String fragment = uri.getFragment();

        if (StringUtils.isNotBlank(query)) {
            buffer.append('?').append(query);
        }

        if (StringUtils.isNotBlank(fragment)) {
            buffer.append('#').append(fragment);
        }

        return buffer.toString();
    }
941903
@Override
	public ChargeInfo getChargeInfo(String corpNum) throws PopbillException {
		return httpget("/FAX/ChargeInfo", corpNum, null, ChargeInfo.class);
	}
379626
public static String urlEncode(String text)
    {
        String urlEncodedString=text;
        if(text!=null)
        {
            try
            {
                urlEncodedString=URLEncoder.encode(text,SpiUtil.UTF_8_ENCODING_NAME);
            }
            catch(UnsupportedEncodingException exception)
            {
                throw new FaxException("Error while URL encoding text.",exception);
            }
        }
        
        return urlEncodedString;
    }
599007
func (s *Subscription) GetURL() string {
	if s == nil || s.URL == nil {
		return ""
	}
	return *s.URL
}
1149514
public <V> String get(String url, Map<String, V> params) throws AuthenticationException, ApiException {
		return performRequest(url, "GET", params, null, null);
	}
402879
public String getUrl() {
        if (url == null) {
            RequestHandle request = getRequest();
            url = LinkUtil.getUrl(request, getPath(), request.getSelectors(), null);
        }
        return url;
    }
1274532
@Override
	public String getPopUpURL(String CorpNum, int ItemCode, String MgtKey) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호 가 입력되지 않았습니다.");
	
		return getPopUpURL(CorpNum, ItemCode, MgtKey, null);
	}
990165
@Override
	public SenderNumber[] getSenderNumberList(String corpNum, String userID)
			throws PopbillException {
		
		return httpget("/FAX/SenderNumber", corpNum, userID, SenderNumber[].class);
	}