org.apache.catalina.connector.Connector.setParseBodyMethods()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(137)

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

Connector.setParseBodyMethods介绍

[英]Set list of HTTP methods which should allow body parameter parsing. This defaults to POST.
[中]设置允许正文参数解析的HTTP方法列表。默认值为POST

代码示例

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

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet )
    setParseBodyMethods(getParseBodyMethods());
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
  // Initialize mapper listener
  mapperListener.init();
}

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

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet )
    setParseBodyMethods(getParseBodyMethods());
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
  // Initialize mapper listener
  mapperListener.init();
}

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

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet )
    setParseBodyMethods(getParseBodyMethods());
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
  // Initialize mapper listener
  mapperListener.init();
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet ) {
    setParseBodyMethods(getParseBodyMethods());
  }
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
  // Initialize mapper listener
  mapperListener.init();
}

代码示例来源:origin: codefollower/Tomcat-Research

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet ) {
    setParseBodyMethods(getParseBodyMethods());
  }
  if (protocolHandler.isAprRequired() &&
      !AprLifecycleListener.isAprAvailable()) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerNoApr",
            getProtocolHandlerClassName()));
  }
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

@Override
protected void initInternal() throws LifecycleException {
  super.initInternal();
  // Initialize adapter
  adapter = new CoyoteAdapter(this);
  protocolHandler.setAdapter(adapter);
  // Make sure parseBodyMethodsSet has a default
  if( null == parseBodyMethodsSet ) {
    setParseBodyMethods(getParseBodyMethods());
  }
  if (protocolHandler.isAprRequired() &&
      !AprLifecycleListener.isAprAvailable()) {
    throw new LifecycleException(
        sm.getString("coyoteConnector.protocolHandlerNoApr",
            getProtocolHandlerClassName()));
  }
  try {
    protocolHandler.init();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerInitializationFailed"), e);
  }
  // Initialize mapper listener
  mapperListener.init();
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

setParseBodyMethods(getParseBodyMethods());

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

setParseBodyMethods(getParseBodyMethods());

相关文章

Connector类方法