类 JsonTool

所有已实现的接口:
Serializable, Iterable

@DefaultKey("json") @ValidScope("request") public class JsonTool extends JsonTool
View version of JsonTool. It adds an automatic parsing of the HTTP query body content, if it is found to be of JSON type.
从以下版本开始:
VelocityTools 3.0
版本:
$Id:$
作者:
Claude Brisson
另请参阅:
  • 构造器详细资料

    • JsonTool

      public JsonTool()
  • 方法详细资料

    • initializeImportSupport

      protected void initializeImportSupport(ValueParser config)
      Importsupport initialization
      覆盖:
      initializeImportSupport 在类中 JsonTool
      参数:
      config - configuration values
    • isJsonMimeType

      protected static boolean isJsonMimeType(String mimeType)
      Check if a given mime type is of JSON type
      参数:
      mimeType - mime type
      返回:
      whether given mime type is of JSON type
    • isJsonContentType

      protected static boolean isJsonContentType(String contentType)
      Check if a given content type is of JSON type
      参数:
      contentType - content type
      返回:
      whether given content type is of JSON type
    • configure

      protected void configure(ValueParser parser)
      Configuration. Parses request body if appropriate.
      覆盖:
      configure 在类中 JsonTool
      参数:
      parser - configuration values