MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getQueryBaseRoute

Method getQueryBaseRoute

src/tsd/HttpRpcPluginQuery.java:36–43  ·  view source on GitHub ↗

Return the base route with no plugin prefix in it. This is matched with values returned by HttpRpcPlugin#getPath(). @return the base route path (no query parameters, etc.)

()

Source from the content-addressed store, hash-verified

34 * @return the base route path (no query parameters, etc.)
35 */
36 @Override
37 public String getQueryBaseRoute() {
38 final String[] parts = explodePath();
39 if (parts.length < 2) { // Must be at least something like: /plugin/blah
40 throw new BadRequestException("Invalid plugin request path: " + getQueryPath());
41 }
42 return parts[1];
43 }
44}

Callers

nothing calls this directly

Calls 2

getQueryPathMethod · 0.80
explodePathMethod · 0.45

Tested by

no test coverage detected