org.eclipse.jetty.server.Request.setMethod()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(274)

本文整理了Java中org.eclipse.jetty.server.Request.setMethod方法的一些代码示例,展示了Request.setMethod的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setMethod方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:setMethod

Request.setMethod介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-security

base_request.setMethod(method);

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void parsedMethod(Buffer method) throws IOException
{
  if (method == null)
    throw new HttpException(HttpServletResponse.SC_BAD_REQUEST);
  _request.setMethod(method.toString());
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.security

base_request.setMethod(method);

代码示例来源:origin: stackoverflow.com

Client client = new Client(Protocol.HTTP);
 Request r = new Request();
 r.setResourceRef("http://127.0.0.1:8182/sample");
 r.setMethod(Method.GET);
 r.getClientInfo().getAcceptedMediaTypes().add(new Preference<MediaType>(MediaType.TEXT_XML));
 client.handle(r).getEntity().write(System.out);

代码示例来源:origin: jenkinsci/winstone

base_request.setMethod(method);

代码示例来源:origin: Nextdoor/bender

Request base_request = HttpChannel.getCurrentHttpChannel().getRequest();
HttpMethod m = HttpMethod.fromString(method);
base_request.setMethod(m,m.asString());

代码示例来源:origin: stackoverflow.com

Client client = new Client(Protocol.HTTP);
Request req = new Request();
req.setMethod(Method.POST); // can be Method.GET
req.setResourceRef(new Reference(/* SERVER URL */+ "/jsonservice"));
req.getCookies().add(GAuth.getCookie());
/* Build your JSONObject */
req.setEntity(/* JSONObject */.toString(), MediaType.APPLICATION_JSON);
req.getClientInfo().getAcceptedMediaTypes().add(new Preference<MediaType>(MediaType.APPLICATION_JSON));
Response resp = client.handle(req);
if (resp.getStatus() == Status.SUCCESS_OK)
{
  // resp.getEntity().getText() -> The JSON string returned by GAE
  JSONObject jo=new JSONObject(resp.getEntity().getText());
  /* Use your JSON object */
}

代码示例来源:origin: org.keycloak/keycloak-saml-jetty81-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-jetty94-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-saml-jetty94-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-jetty92-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(HttpMethod.valueOf(method.toUpperCase()), method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-jetty81-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-saml-jetty93-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-saml-jetty92-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(HttpMethod.valueOf(method.toUpperCase()), method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.keycloak/keycloak-saml-jetty91-adapter

if (j_uri.equals(buf.toString())) {
  String method = (String)session.getAttribute(JettyHttpFacade.__J_METHOD);
  myRequest.setMethod(HttpMethod.valueOf(method.toUpperCase()), method);
  MultivaluedHashMap<String, String> j_post = (MultivaluedHashMap<String, String>) session.getAttribute(CACHED_FORM_PARAMETERS);
  if (j_post != null) {

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

_request.setMethod(outerRequest.getMethod());
String uri=outerRequest.getQueryString()==null?outerRequest.getRequestURI():(outerRequest.getRequestURI()+"?"+outerRequest.getQueryString());
_request.setUri(new HttpURI(uri));

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

_request.setMethod(httpMethod, method);

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

_request.setMethod(httpMethod, method);

代码示例来源:origin: jenkinsci/winstone

setMethod(request.getMethod());
HttpURI uri = request.getURI();
_originalURI = uri.isAbsolute()&&request.getHttpVersion()!=HttpVersion.HTTP_2?uri.toString():uri.getPathQuery();

相关文章

Request类方法