123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- package info.aspirecn.iov.sjjh.supplier10000034.gjwl;
- import java.util.List;
- import java.util.Map;
- import info.aspirecn.iov.sjjh.supplier10000034.gjwl.enums.Method;
- public class Request {
- public Request() {
- }
- public Request(Method method, String host, String path, String appKey, String appSecret, int timeout) {
- this.method = method;
- this.host = host;
- this.path = path;
- this.appKey = appKey;
- this.appSecret = appSecret;
- this.timeout = timeout;
- }
-
- private Method method;
-
- private String host;
-
-
- private String path;
-
- private String appKey;
-
- private String appSecret;
-
- private int timeout;
-
- private Map<String, String> headers;
-
-
- private Map<String, String> querys;
-
- private Map<String, String> bodys;
-
- private String stringBody;
-
- private byte[] bytesBody;
-
- private List<String> signHeaderPrefixList;
- public Method getMethod() {
- return method;
- }
- public void setMethod(Method method) {
- this.method = method;
- }
- public String getHost() {
- return host;
- }
- public void setPath(String path) {
- this.path = path;
- }
-
- public String getPath() {
- return path;
- }
- public void setHost(String host) {
- this.host = host;
- }
- public String getAppKey() {
- return appKey;
- }
- public void setAppKey(String appKey) {
- this.appKey = appKey;
- }
- public String getAppSecret() {
- return appSecret;
- }
- public void setAppSecret(String appSecret) {
- this.appSecret = appSecret;
- }
- public int getTimeout() {
- return timeout;
- }
- public void setTimeout(int timeout) {
- this.timeout = timeout;
- }
- public Map<String, String> getHeaders() {
- return headers;
- }
- public void setHeaders(Map<String, String> headers) {
- this.headers = headers;
- }
-
- public Map<String, String> getQuerys() {
- return querys;
- }
- public void setQuerys(Map<String, String> querys) {
- this.querys = querys;
- }
-
- public Map<String, String> getBodys() {
- return bodys;
- }
- public void setBodys(Map<String, String> bodys) {
- this.bodys = bodys;
- }
- public String getStringBody() {
- return stringBody;
- }
- public void setStringBody(String stringBody) {
- this.stringBody = stringBody;
- }
- public byte[] getBytesBody() {
- return bytesBody;
- }
- public void setBytesBody(byte[] bytesBody) {
- this.bytesBody = bytesBody;
- }
- public List<String> getSignHeaderPrefixList() {
- return signHeaderPrefixList;
- }
- public void setSignHeaderPrefixList(List<String> signHeaderPrefixList) {
- this.signHeaderPrefixList = signHeaderPrefixList;
- }
- }
|