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

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

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

Request.getContentType介绍

暂无

代码示例

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

  1. /**
  2. * @return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. public String getContentType() {
  5. return (coyoteRequest.getContentType());
  6. }

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

  1. /**
  2. * @return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /* */ public String getContentType()
  2. /* */ {
  3. /* 962 */ return this.coyoteRequest.getContentType();
  4. /* */ }
  5. /* */

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. public String getContentType() {
  5. return (coyoteRequest.getContentType());
  6. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. public String getContentType() {
  5. return (coyoteRequest.getContentType());
  6. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Return the content type for this Request.
  3. */
  4. @Override
  5. public String getContentType() {
  6. return coyoteRequest.getContentType();
  7. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null) {
  6. return charEncoding;
  7. }
  8. charEncoding = getCharsetFromContentType(getContentType());
  9. return charEncoding;
  10. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. */
  4. public String getCharacterEncoding() {
  5. if (charEncoding != null)
  6. return charEncoding;
  7. charEncoding = ContentType.getCharsetFromContentType(getContentType());
  8. return charEncoding;
  9. }

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

  1. /**
  2. * Get the character encoding used for this request.
  3. *
  4. * @return The value set via {@link #setCharset(Charset)} or if no
  5. * call has been made to that method try to obtain if from the
  6. * content type.
  7. */
  8. public String getCharacterEncoding() {
  9. if (characterEncoding == null) {
  10. characterEncoding = getCharsetFromContentType(getContentType());
  11. }
  12. return characterEncoding;
  13. }

相关文章

Request类方法