Package com.googlecode.richrest.server.mapper

Source Code of com.googlecode.richrest.server.mapper.RestfulActionMapper

package com.googlecode.richrest.server.mapper;

import javax.servlet.http.HttpServletRequest;

import com.googlecode.richrest.server.ServletSerializer;
import com.googlecode.richrest.server.serializer.PathServletSerializer;

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);
  }

}
TOP

Related Classes of com.googlecode.richrest.server.mapper.RestfulActionMapper

TOP
Copyright © 2018 www.massapi.com. 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.