Tabnine Logo
DefaultHandlerRegistry$ErrorRestHandler.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.shindig.protocol.DefaultHandlerRegistry$ErrorRestHandler
constructor

Best Java code snippets using org.apache.shindig.protocol.DefaultHandlerRegistry$ErrorRestHandler.<init> (Showing top 5 results out of 315)

origin: org.apache.shindig/shindig-common

/**
 * Get a REST request handler
 */
public RestHandler getRestHandler(String path, String method) {
 method = method.toUpperCase();
 if (path != null) {
  if (path.startsWith("/")) {
   path = path.substring(1);
  }
  String[] pathParts = StringUtils.splitPreserveAllTokens(path, '/');
  Map<String, SortedSet<RestPath>> methods = serviceMethodPathMap.get(pathParts[0]);
  if (methods != null) {
   SortedSet<RestPath> paths = methods.get(method);
   if (paths != null) {
    for (RestPath restPath : paths) {
     RestHandler handler = restPath.accept(pathParts);
     if (handler != null) {
      return handler;
     }
    }
   }
  }
 }
 return new ErrorRestHandler(new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED,
   "No service defined for path " + path));
}
origin: com.lmco.shindig/shindig-common

/**
 * Get a REST request handler
 */
public RestHandler getRestHandler(String path, String method) {
 method = method.toUpperCase();
 if (path != null) {
  if (path.startsWith("/")) {
   path = path.substring(1);
  }
  String[] pathParts = StringUtils.splitPreserveAllTokens(path, '/');
  Map<String, SortedSet<RestPath>> methods = serviceMethodPathMap.get(pathParts[0]);
  if (methods != null) {
   SortedSet<RestPath> paths = methods.get(method);
   if (paths != null) {
    for (RestPath restPath : paths) {
     RestHandler handler = restPath.accept(pathParts);
     if (handler != null) {
      return handler;
     }
    }
   }
  }
 }
 return new ErrorRestHandler(new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED,
   "No service defined for path " + path));
}
origin: org.gatein.shindig/shindig-common

/**
 * Get a REST request handler
 */
public RestHandler getRestHandler(String path, String method) {
 method = method.toUpperCase();
 if (path != null) {
  if (path.startsWith("/")) {
   path = path.substring(1);
  }
  String[] pathParts = StringUtils.splitPreserveAllTokens(path, '/');
  Map<String, SortedSet<RestPath>> methods = serviceMethodPathMap.get(pathParts[0]);
  if (methods != null) {
   SortedSet<RestPath> paths = methods.get(method);
   if (paths != null) {
    for (RestPath restPath : paths) {
     RestHandler handler = restPath.accept(pathParts);
     if (handler != null) {
      return handler;
     }
    }
   }
  }
 }
 return new ErrorRestHandler(new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED,
   "No service defined for path " + path));
}
origin: apache/shindig

/**
 * Get a REST request handler
 */
public RestHandler getRestHandler(String path, String method) {
 method = method.toUpperCase();
 if (path != null) {
  if (path.startsWith("/")) {
   path = path.substring(1);
  }
  String[] pathParts = StringUtils.splitPreserveAllTokens(path, '/');
  Map<String, SortedSet<RestPath>> methods = serviceMethodPathMap.get(pathParts[0]);
  if (methods != null) {
   SortedSet<RestPath> paths = methods.get(method);
   if (paths != null) {
    for (RestPath restPath : paths) {
     RestHandler handler = restPath.accept(pathParts);
     if (handler != null) {
      return handler;
     }
    }
   }
  }
 }
 return new ErrorRestHandler(new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED,
   "No service defined for path " + path));
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Get a REST request handler
 */
public RestHandler getRestHandler(String path, String method) {
 method = method.toUpperCase();
 if (path != null) {
  if (path.startsWith("/")) {
   path = path.substring(1);
  }
  String[] pathParts = StringUtils.splitPreserveAllTokens(path, '/');
  Map<String, SortedSet<RestPath>> methods = serviceMethodPathMap.get(pathParts[0]);
  if (methods != null) {
   SortedSet<RestPath> paths = methods.get(method);
   if (paths != null) {
    for (RestPath restPath : paths) {
     RestHandler handler = restPath.accept(pathParts);
     if (handler != null) {
      return handler;
     }
    }
   }
  }
 }
 return new ErrorRestHandler(new ProtocolException(HttpServletResponse.SC_NOT_IMPLEMENTED,
   "No service defined for path " + path));
}
org.apache.shindig.protocolDefaultHandlerRegistry$ErrorRestHandler<init>

Popular methods of DefaultHandlerRegistry$ErrorRestHandler

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • runOnUiThread (Activity)
    • addToBackStack (FragmentTransaction)
    • onRequestPermissionsResult (Fragment)
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • Handler (java.util.logging)
      A Handler object accepts a logging request and exports the desired messages to a target, for example
    • Collectors (java.util.stream)
    • JFrame (javax.swing)
    • Top plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now