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

org.frameworkset.spi.remote.http.proxy.InvokeContext Maven / Gradle / Ivy

The newest version!
package org.frameworkset.spi.remote.http.proxy;
/**
 * Copyright 2024 bboss
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import org.apache.http.entity.ContentType; import java.nio.charset.Charset; import java.util.LinkedHashMap; import java.util.Map; /** *

Description:

*

* * @author biaoping.yin * @Date 2024/3/3 */ public class InvokeContext { private Map context; private ContentType requestContentType; private java.nio.charset.Charset responseCharset; private Map headers; public Map getContext() { return context; } public InvokeContext addParam(String name,Object value){ if(context == null){ context = new LinkedHashMap<>(); } context.put(name,value); return this; } public void setContext(Map context) { this.context = context; } public ContentType getRequestContentType() { return requestContentType; } public void setRequestContentType(ContentType requestContentType) { this.requestContentType = requestContentType; } public Charset getResponseCharset() { return responseCharset; } public void setResponseCharset(Charset responseCharset) { this.responseCharset = responseCharset; } public Map getHeaders() { return headers; } public void setHeaders(Map headers) { this.headers = headers; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy