Outbound method type에 PATCH 추가함

This commit is contained in:
jaewohong
2026-01-28 17:15:01 +09:00
parent 4adad4f2e0
commit 77c4451718
2 changed files with 5 additions and 0 deletions
@@ -5,6 +5,7 @@ public enum HttpMethodType {
PUT,
DELETE,
GET,
PATCH,
UNKNOWN;
public static HttpMethodType getValue(String value) {
try {
@@ -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;