Package com.googlecode.richrest.server

Examples of com.googlecode.richrest.server.ServletSerializer


public class RestfulActionMapper extends DefaultActionMapper {

  @Override
  public ServletSerializer getSerializer(HttpServletRequest request) {
    ServletSerializer serializer = super.getSerializer(request);
    if (serializer == null)
      return null;
    return new PathServletSerializer(serializer);
  }
View Full Code Here


    }
    return actionName;
  }

  public ServletSerializer getSerializer(HttpServletRequest request) {
    ServletSerializer serializer = getSerializer(request.getHeader("Accept")); // 根据接收类型查找
    if (serializer == null)
      serializer = getSerializer(request.getContentType()); // 如果没有设定接收类型,使用请求类型查找
    return serializer;
  }
View Full Code Here

TOP

Related Classes of com.googlecode.richrest.server.ServletSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.