Outbound method type에 PATCH 추가함
This commit is contained in:
@@ -5,6 +5,7 @@ public enum HttpMethodType {
|
||||
PUT,
|
||||
DELETE,
|
||||
GET,
|
||||
PATCH,
|
||||
UNKNOWN;
|
||||
public static HttpMethodType getValue(String value) {
|
||||
try {
|
||||
|
||||
+4
@@ -33,6 +33,7 @@ import org.apache.hc.client5.http.classic.methods.HttpDelete;
|
||||
import org.apache.hc.client5.http.classic.methods.HttpGet;
|
||||
import org.apache.hc.client5.http.classic.methods.HttpPost;
|
||||
import org.apache.hc.client5.http.classic.methods.HttpPut;
|
||||
import org.apache.hc.client5.http.classic.methods.HttpPatch;
|
||||
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
|
||||
import org.apache.hc.client5.http.config.RequestConfig;
|
||||
import org.apache.hc.client5.http.entity.UrlEncodedFormEntity;
|
||||
@@ -284,6 +285,9 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
||||
case PUT:
|
||||
method = new HttpPut(uri);
|
||||
break;
|
||||
case PATCH:
|
||||
method = new HttpPatch(uri);
|
||||
break;
|
||||
default:
|
||||
method = new HttpGet(uri);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user