本文整理了Java中org.eclipse.jetty.util.ajax.JSON.addConvertor()
方法的一些代码示例,展示了JSON.addConvertor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSON.addConvertor()
方法的具体详情如下:
包路径:org.eclipse.jetty.util.ajax.JSON
类名称:JSON
方法名:addConvertor
[英]Register a Convertor for a class or interface.
[中]为类或接口注册转换器。
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/**
* Register a {@link Convertor} for a class or interface.
*
* @param forClass
* The class or interface that the convertor applies to
* @param convertor
* the convertor
*/
public static void registerConvertor(Class forClass, Convertor convertor)
{
DEFAULT.addConvertor(forClass,convertor);
}
代码示例来源:origin: org.eclipse.jetty/jetty-util-ajax
/**
* Register a {@link Convertor} for a class or interface.
*
* @param forClass
* The class or interface that the convertor applies to
* @param convertor
* the convertor
*/
public static void registerConvertor(Class forClass, Convertor convertor)
{
DEFAULT.addConvertor(forClass,convertor);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
/**
* Register a {@link Convertor} for a class or interface.
*
* @param forClass
* The class or interface that the convertor applies to
* @param convertor
* the convertor
*/
public static void registerConvertor(Class forClass, Convertor convertor)
{
DEFAULT.addConvertor(forClass,convertor);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
/**
* Register a {@link Convertor} for a class or interface.
*
* @param forClass
* The class or interface that the convertor applies to
* @param convertor
* the convertor
*/
public static void registerConvertor(Class forClass, Convertor convertor)
{
DEFAULT.addConvertor(forClass,convertor);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
/**
* Register a {@link Convertor} for a class or interface.
*
* @param forClass
* The class or interface that the convertor applies to
* @param convertor
* the convertor
*/
public static void registerConvertor(Class forClass, Convertor convertor)
{
DEFAULT.addConvertor(forClass,convertor);
}
代码示例来源:origin: org.apache.hadoop/hadoop-azure
/**
* Creates a JSON serializer that can serialize a PermissionStatus object into
* the JSON string we want in the blob metadata.
*
* @return The JSON serializer.
*/
private static JSON createPermissionJsonSerializer() {
JSON serializer = new JSON();
serializer.addConvertor(PermissionStatus.class,
new PermissionStatusJsonSerializer());
return serializer;
}
内容来源于网络,如有侵权,请联系作者删除!