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.)
()
| 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 | } |
nothing calls this directly
no test coverage detected