Package org.jrest4guice.rest.reader

Examples of org.jrest4guice.rest.reader.RequestContentReader


          }else if (clazz.isAnnotationPresent(RESTful.class)) {
            jRestContext.addResourceByClassMethodInfo(clazz);
          }else if (RequestContentReader.class.isAssignableFrom(clazz)) {
            // 注册RequestContentReader
            try {
              RequestContentReader reader = (RequestContentReader) clazz
                  .newInstance();
              readerRegister.registResponseWriter(reader.getContentType(),clazz);
            } catch (Exception e) {
            }
          }else if (ResponseWriter.class.isAssignableFrom(clazz)) {
            // 注册ResponseWriter
            try {
View Full Code Here


   *
   * @modelMap request
   * @modelMap params
   */
  public void fillParameters(HttpServletRequest request, ModelMap params) {
    RequestContentReader reader = RequestContentReaderRegister.getInstance().getRequestReader(RequestHelper.getContentType(request));
    if(reader != null)
      reader.readData(request, params, charset);
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.rest.reader.RequestContentReader

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.