@Override public void start(Deployment dep) { for (Endpoint ep : dep.getService().getEndpoints()) { HttpEndpoint httpEp = (HttpEndpoint)ep; String urlPattern = httpEp.getURLPattern(); if (urlPattern == null) { urlPattern = getExplicitPattern(dep, ep); if (urlPattern == null) urlPattern = getImplicitPattern(dep, ep); // Always prefix with '/' if (urlPattern.startsWith("/") == false) urlPattern = "/" + urlPattern; httpEp.setURLPattern(urlPattern); } } }
@Override public void start(Deployment dep) { for (Endpoint ep : dep.getService().getEndpoints()) { if (ep instanceof HttpEndpoint) { HttpEndpoint httpEp = (HttpEndpoint)ep; String urlPattern = httpEp.getURLPattern(); if (urlPattern == null) { urlPattern = getExplicitPattern(dep, ep); if (urlPattern == null) { urlPattern = ep.getShortName(); } // Always prefix with '/' httpEp.setURLPattern(UrlPatternUtils.getUrlPattern(urlPattern)); } } } }
((HttpEndpoint)ep).setURLPattern("/*");