org.apache.coyote.Request.localName()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(380)

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

Request.localName介绍

暂无

代码示例

代码示例来源:origin: line/armeria

  1. coyoteReq.localName().setString(hostName());
  2. coyoteReq.setLocalPort(localAddr.getPort());

代码示例来源:origin: tomcat/catalina

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. public String getLocalName(){
  6. if (localName == null) {
  7. coyoteRequest.action
  8. (ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  9. localName = coyoteRequest.localName().toString();
  10. }
  11. return localName;
  12. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. public String getLocalName(){
  6. if (localName == null) {
  7. coyoteRequest.action
  8. (ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  9. localName = coyoteRequest.localName().toString();
  10. }
  11. return localName;
  12. }

代码示例来源:origin: jboss.web/jbossweb

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. public String getLocalName(){
  6. if (localName == null) {
  7. coyoteRequest.action
  8. (ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  9. localName = coyoteRequest.localName().toString();
  10. }
  11. return localName;
  12. }

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

  1. /**
  2. * @return the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

  1. /* */ public String getLocalName()
  2. /* */ {
  3. /* 1211 */ if (this.localName == null) {
  4. /* 1212 */ this.coyoteRequest.action(ActionCode.ACTION_REQ_LOCAL_NAME_ATTRIBUTE, this.coyoteRequest);
  5. /* */
  6. /* 1214 */ this.localName = this.coyoteRequest.localName().toString();
  7. /* */ }
  8. /* 1216 */ return this.localName;
  9. /* */ }
  10. /* */

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * @return the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

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

  1. /**
  2. * Returns the host name of the Internet Protocol (IP) interface on
  3. * which the request was received.
  4. */
  5. @Override
  6. public String getLocalName(){
  7. if (localName == null) {
  8. coyoteRequest.action
  9. (ActionCode.REQ_LOCAL_NAME_ATTRIBUTE, coyoteRequest);
  10. localName = coyoteRequest.localName().toString();
  11. }
  12. return localName;
  13. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. /**
  2. * Request the local name attribute
  3. */
  4. private void requestLocalNameAttr() {
  5. if (localName == null && (channel != null)) {
  6. try {
  7. localName = ((InetSocketAddress) this.channel.getLocalAddress()).getHostName();
  8. } catch (Exception e) {
  9. CoyoteLogger.HTTP_LOGGER.errorGettingSocketInformation(e);
  10. }
  11. }
  12. request.localName().setString(localName);
  13. }

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

  1. /**
  2. * {@inheritDoc}
  3. * <p>
  4. * This implementation populates the server name and port from the local
  5. * name and port provided by the AJP message.
  6. */
  7. @Override
  8. protected void populateHost() {
  9. // No host information (HTTP/1.0)
  10. request.setServerPort(request.getLocalPort());
  11. try {
  12. request.serverName().duplicate(request.localName());
  13. } catch (IOException e) {
  14. response.setStatus(400);
  15. setErrorState(ErrorState.CLOSE_CLEAN, e);
  16. }
  17. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. request.serverName().duplicate(request.localName());
  2. } catch (IOException e) {
  3. response.setStatus(400);

代码示例来源:origin: org.jboss.web/jbossweb

  1. request.serverName().duplicate(request.localName());
  2. } catch (IOException e) {
  3. response.setStatus(400);

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

  1. request.serverName().duplicate(request.localName());
  2. } catch (IOException e) {
  3. response.setStatus(400);

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

  1. request.serverName().duplicate(request.localName());
  2. } catch (IOException e) {
  3. response.setStatus(400);

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

  1. msg.getBytes(req.localName());
  2. req.setLocalPort(msg.getInt());

相关文章

Request类方法