Package railo.runtime.rest

Examples of railo.runtime.rest.RestRequestListener


     
      if(accept.size()==0) accept.add(MimeType.ALL);
     
      // loop all mappings
      //railo.runtime.rest.Result result = null;//config.getRestSource(pathInfo, null);
      RestRequestListener rl=null;
      railo.runtime.rest.Mapping[] restMappings = config.getRestMappings();
      railo.runtime.rest.Mapping m,mapping=null,defaultMapping=null;
      //String callerPath=null;
      if(restMappings!=null)for(int i=0;i<restMappings.length;i++) {
            m = restMappings[i];
            if(m.isDefault())defaultMapping=m;
            if(pathInfo.startsWith(m.getVirtualWithSlash(),0) && m.getPhysical()!=null) {
              mapping=m;
              //result = m.getResult(this,callerPath=pathInfo.substring(m.getVirtual().length()),format,matrix,null);
              rl=new RestRequestListener(m,pathInfo.substring(m.getVirtual().length()),matrix,format,hasFormatExtension,accept,contentType,null);
              break;
            }
        }
     
      // default mapping
      if(mapping==null && defaultMapping!=null && defaultMapping.getPhysical()!=null) {
        mapping=defaultMapping;
            //result = mapping.getResult(this,callerPath=pathInfo,format,matrix,null);
          rl=new RestRequestListener(mapping,pathInfo,matrix,format,hasFormatExtension,accept,contentType,null);
      }
     
     
      //base = PageSourceImpl.best(config.getPageSources(this,null,realPath,true,false,true));
     
View Full Code Here

TOP

Related Classes of railo.runtime.rest.RestRequestListener

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.