code: public static MchShorturlResult toolsShorturl(MchShorturl shorturl,String key){
  		Map<String,String> map = MapUtil.objectToMap(shorturl);
  		String sign = SignatureUtil.generateSign(map,shorturl.getSign_type(),key);
  		shorturl.setSign(sign);
  		String shorturlXML = XMLConverUtil.convertToXML(shorturl);
  		HttpUriRequest httpUriRequest = RequestBuilder.post()
  				.setHeader(xmlHeader)
  				.setUri(baseURI()+ "/tools/shorturl")
  				.setEntity(new StringEntity(shorturlXML,Charset.forName("utf-8")))
  				.build();
  		return LocalHttpClient.executeXmlResult(httpUriRequest,MchShorturlResult.class,shorturl.getSign_type(),key);
  	}
docs: 短链接转换
  @param shorturl shorturl
  @param key 商户支付密钥
  @return MchShorturlResult