/** * Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, * and calls {@link #getActionForMethod(java.lang.reflect.Method)} for each. If this returns a URI, the method is * registered using {@link #registerEndpoint(java.net.URI, Object)}. * * @see #getActionForMethod (java.lang.reflect.Method) */ protected void registerMethods(Object endpoint) { Assert.notNull(endpoint, "'endpoint' must not be null"); Method[] methods = AopUtils.getTargetClass(endpoint).getMethods(); for (Method method : methods) { if (method.isSynthetic() || method.getDeclaringClass().equals(Object.class)) { continue; } URI action = getActionForMethod(method); if (action != null) { registerEndpoint(action, new MethodEndpoint(endpoint, method)); } } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, * and calls {@link #getActionForMethod(java.lang.reflect.Method)} for each. If this returns a URI, the method is * registered using {@link #registerEndpoint(java.net.URI, Object)}. * * @see #getActionForMethod (java.lang.reflect.Method) */ protected void registerMethods(Object endpoint) { Assert.notNull(endpoint, "'endpoint' must not be null"); Method[] methods = AopUtils.getTargetClass(endpoint).getMethods(); for (Method method : methods) { if (method.isSynthetic() || method.getDeclaringClass().equals(Object.class)) { continue; } URI action = getActionForMethod(method); if (action != null) { registerEndpoint(action, new MethodEndpoint(endpoint, method)); } } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, * and calls {@link #getActionForMethod(java.lang.reflect.Method)} for each. If this returns a URI, the method is * registered using {@link #registerEndpoint(java.net.URI, Object)}. * * @see #getActionForMethod (java.lang.reflect.Method) */ protected void registerMethods(Object endpoint) { Assert.notNull(endpoint, "'endpoint' must not be null"); Method[] methods = AopUtils.getTargetClass(endpoint).getMethods(); for (Method method : methods) { if (method.isSynthetic() || method.getDeclaringClass().equals(Object.class)) { continue; } URI action = getActionForMethod(method); if (action != null) { registerEndpoint(action, new MethodEndpoint(endpoint, method)); } } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
/** * Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, * and calls {@link #getActionForMethod(java.lang.reflect.Method)} for each. If this returns a URI, the method is * registered using {@link #registerEndpoint(java.net.URI, Object)}. * * @see #getActionForMethod (java.lang.reflect.Method) */ protected void registerMethods(Object endpoint) { Assert.notNull(endpoint, "'endpoint' must not be null"); Method[] methods = AopUtils.getTargetClass(endpoint).getMethods(); for (Method method : methods) { if (method.isSynthetic() || method.getDeclaringClass().equals(Object.class)) { continue; } URI action = getActionForMethod(method); if (action != null) { registerEndpoint(action, new MethodEndpoint(endpoint, method)); } } }
@Override protected URI getResponseAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.output())) { return getActionUri(action.output(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }
@Override protected URI getFaultAction(Object endpoint, MessageAddressingProperties map) { MethodEndpoint methodEndpoint = (MethodEndpoint) endpoint; Action action = methodEndpoint.getMethod().getAnnotation(Action.class); if (action != null && StringUtils.hasText(action.fault())) { return getActionUri(action.fault(), methodEndpoint); } else { return super.getResponseAction(endpoint, map); } }