All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ipokerface.weixin.request.http.URLParameter Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.ipokerface.weixin.request.http;

import cn.ipokerface.weixin.Constant;
import cn.ipokerface.weixin.utils.URLEncodingUtil;

/**
 * Created by       PokerFace
 * Create Date      2019-12-27.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ public class URLParameter extends NameValue { private static final long serialVersionUID = -115491642760990655L; public URLParameter(String name, String value) { super(name, value); } public String encoding() { return String.format("%s=%s", URLEncodingUtil.encoding(getName(), Constant.UTF_8, true), URLEncodingUtil.encoding(getValue(), Constant.UTF_8, true)); } @Override public String toString() { return String.format("[URLParameter name=%s, value=%s]", getName(), getValue()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy