public ContainerRequest filter(ContainerRequest request) { LOGGER.log(Level.INFO, "Sub-Resource Method matched." + "\n Path: " + asrm.getPath().getValue() + (context != null ? "\n Matched Result: " + context.getUriInfo().getMatchedResults().get(0) : "") + "\n HttpMethod: " + asrm.getHttpMethod() + "\n Resource: " + asrm.getDeclaringResource().getResourceClass().getName() + "\n Method: " + asrm.getMethod().toGenericString()); return request; } }
@Override public void visitAbstractSubResourceMethod(AbstractSubResourceMethod method) { // check the same things that are being checked for resource methods visitAbstractResourceMethod(method); // and make sure the Path is not null if ((null == method.getPath()) || (null == method.getPath().getValue()) || (method.getPath().getValue().length() == 0)) { issueList.add(new ResourceModelIssue( method, ImplMessages.ERROR_SUBRES_METHOD_URI_PATH_INVALID(method.getMethod(), method.getPath()), true)); } }
} catch (IllegalArgumentException ex) { Errors.error(String.format("Illegal URI template for sub-resource method %s: %s", method.getMethod(), ex.getMessage())); continue;
processParameters( abstractSubResourceMethod.getResource().getResourceClass(), abstractSubResourceMethod.getMethod().getDeclaringClass(), abstractSubResourceMethod, m, isEncoded);
public ContainerRequest filter(ContainerRequest request) { LOGGER.log(Level.INFO, "Sub-Resource Method matched." + "\n Path: " + asrm.getPath().getValue() + (context != null ? "\n Matched Result: " + context.getUriInfo().getMatchedResults().get(0) : "") + "\n HttpMethod: " + asrm.getHttpMethod() + "\n Resource: " + asrm.getDeclaringResource().getResourceClass().getName() + "\n Method: " + asrm.getMethod().toGenericString()); return request; } }
public ContainerRequest filter(ContainerRequest request) { LOGGER.log(Level.INFO, "Sub-Resource Method matched." + "\n Path: " + asrm.getPath().getValue() + (context != null ? "\n Matched Result: " + context.getUriInfo().getMatchedResults().get(0) : "") + "\n HttpMethod: " + asrm.getHttpMethod() + "\n Resource: " + asrm.getDeclaringResource().getResourceClass().getName() + "\n Method: " + asrm.getMethod().toGenericString()); return request; } }
@Override public void visitAbstractSubResourceMethod(AbstractSubResourceMethod method) { // check the same things that are being checked for resource methods visitAbstractResourceMethod(method); // and make sure the Path is not null if ((null == method.getPath()) || (null == method.getPath().getValue()) || (method.getPath().getValue().length() == 0)) { issueList.add(new ResourceModelIssue( method, ImplMessages.ERROR_SUBRES_METHOD_URI_PATH_INVALID(method.getMethod(), method.getPath()), true)); } }
@Override public void visitAbstractSubResourceMethod(AbstractSubResourceMethod method) { // check the same things that are being checked for resource methods visitAbstractResourceMethod(method); // and make sure the Path is not null if ((null == method.getPath()) || (null == method.getPath().getValue()) || (method.getPath().getValue().length() == 0)) { issueList.add(new ResourceModelIssue( method, ImplMessages.ERROR_SUBRES_METHOD_URI_PATH_INVALID(method.getMethod(), method.getPath()), true)); } }
if(srmClass.getSuperclass().equals(superSrmClass) && !srm.getMethod().getName().equals(superSrm.getMethod().getName())){ String uri = uriPrefix + "/" + srmPath + "/" + superSrmPath ; resources.put(uri,superSrm.getHttpMethod());
} catch (IllegalArgumentException ex) { Errors.error(String.format("Illegal URI template for sub-resource method %s: %s", method.getMethod(), ex.getMessage())); continue;
} catch (IllegalArgumentException ex) { Errors.error(String.format("Illegal URI template for sub-resource method %s: %s", method.getMethod(), ex.getMessage())); continue;
processParameters( abstractSubResourceMethod.getResource().getResourceClass(), abstractSubResourceMethod.getMethod().getDeclaringClass(), abstractSubResourceMethod, m, isEncoded);
processParameters( abstractSubResourceMethod.getResource().getResourceClass(), abstractSubResourceMethod.getMethod().getDeclaringClass(), abstractSubResourceMethod, m, isEncoded);