/** * Map action URIs to endpoint bean names. This is the typical way of configuring this EndpointMapping. * * @param mappings properties with URLs as keys and bean names as values * @see #setActionMap(java.util.Map) */ public void setMappings(Properties mappings) throws URISyntaxException { setActionMap(mappings); }
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); registerEndpoints(actionMap); }
/** * Register all endpoints specified in the action map. * * @param actionMap Map with action URIs as keys and endppint beans or bean names as values * @throws BeansException if an endpoint couldn't be registered * @throws IllegalStateException if there is a conflicting endpoint registered */ protected void registerEndpoints(Map<URI, Object> actionMap) throws BeansException { if (actionMap.isEmpty()) { logger.warn("Neither 'actionMap' nor 'mappings' set on SimpleActionEndpointMapping"); } else { for (Map.Entry<URI, Object> entry : actionMap.entrySet()) { URI action = entry.getKey(); Object endpoint = entry.getValue(); // Remove whitespace from endpoint bean name. if (endpoint instanceof String) { endpoint = ((String) endpoint).trim(); } registerEndpoint(action, endpoint); } } }
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); registerEndpoints(actionMap); }
/** * Register all endpoints specified in the action map. * * @param actionMap Map with action URIs as keys and endppint beans or bean names as values * @throws BeansException if an endpoint couldn't be registered * @throws IllegalStateException if there is a conflicting endpoint registered */ protected void registerEndpoints(Map<URI, Object> actionMap) throws BeansException { if (actionMap.isEmpty()) { logger.warn("Neither 'actionMap' nor 'mappings' set on SimpleActionEndpointMapping"); } else { for (Map.Entry<URI, Object> entry : actionMap.entrySet()) { URI action = entry.getKey(); Object endpoint = entry.getValue(); // Remove whitespace from endpoint bean name. if (endpoint instanceof String) { endpoint = ((String) endpoint).trim(); } registerEndpoint(action, endpoint); } } }
/** * Map action URIs to endpoint bean names. This is the typical way of configuring this EndpointMapping. * * @param mappings properties with URLs as keys and bean names as values * @see #setActionMap(java.util.Map) */ public void setMappings(Properties mappings) throws URISyntaxException { setActionMap(mappings); }
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); registerEndpoints(actionMap); }
/** * Register all endpoints specified in the action map. * * @param actionMap Map with action URIs as keys and endppint beans or bean names as values * @throws BeansException if an endpoint couldn't be registered * @throws IllegalStateException if there is a conflicting endpoint registered */ protected void registerEndpoints(Map<URI, Object> actionMap) throws BeansException { if (actionMap.isEmpty()) { logger.warn("Neither 'actionMap' nor 'mappings' set on SimpleActionEndpointMapping"); } else { for (Map.Entry<URI, Object> entry : actionMap.entrySet()) { URI action = entry.getKey(); Object endpoint = entry.getValue(); // Remove whitespace from endpoint bean name. if (endpoint instanceof String) { endpoint = ((String) endpoint).trim(); } registerEndpoint(action, endpoint); } } }
/** * Map action URIs to endpoint bean names. This is the typical way of configuring this EndpointMapping. * * @param mappings properties with URLs as keys and bean names as values * @see #setActionMap(java.util.Map) */ public void setMappings(Properties mappings) throws URISyntaxException { setActionMap(mappings); }
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); registerEndpoints(actionMap); }
/** * Register all endpoints specified in the action map. * * @param actionMap Map with action URIs as keys and endppint beans or bean names as values * @throws BeansException if an endpoint couldn't be registered * @throws IllegalStateException if there is a conflicting endpoint registered */ protected void registerEndpoints(Map<URI, Object> actionMap) throws BeansException { if (actionMap.isEmpty()) { logger.warn("Neither 'actionMap' nor 'mappings' set on SimpleActionEndpointMapping"); } else { for (Map.Entry<URI, Object> entry : actionMap.entrySet()) { URI action = entry.getKey(); Object endpoint = entry.getValue(); // Remove whitespace from endpoint bean name. if (endpoint instanceof String) { endpoint = ((String) endpoint).trim(); } registerEndpoint(action, endpoint); } } }
/** * Map action URIs to endpoint bean names. This is the typical way of configuring this EndpointMapping. * * @param mappings properties with URLs as keys and bean names as values * @see #setActionMap(java.util.Map) */ public void setMappings(Properties mappings) throws URISyntaxException { setActionMap(mappings); }