language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/main/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParser.java
@@ -271,6 +271,12 @@ private RuntimeBeanReference registerStompHandler(Element element, RuntimeBeanRe RootBeanDefinition stompHandlerDef = new RootBeanDefinition(StompSubProtocolHandler.class); registerBeanDef(stompHandlerDef, context, source); + Element errorHandlerElem = DomUtils.getChildElementByTagName(ele...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/StompEndpointRegistry.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebMvcStompEndpointRegistry.java
@@ -30,6 +30,7 @@ import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping; import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.handler.WebSocketHandlerDecorator; +import org.springframework.web.socket.messaging.StompSubProtocolErrorHandler; import org.springf...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolErrorHandler.java
@@ -30,9 +30,9 @@ * opportunity to prepare the error message or to prevent one from being sent. * * <p>Note that the STOMP protocol requires a server to close the connection - * after sending an ERROR frame. To prevent that, a handler could return - * {@code null} and send a message through the broker instea...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.2.xsd
@@ -727,6 +727,22 @@ </xsd:attribute> </xsd:complexType> </xsd:element> + <xsd:element name="stomp-error-handler" minOccurs="0"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + Configures a StompSubProtocolErrorHandler to customize or handle STOMP ERROR to clients. + ]]></xsd:d...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/test/java/org/springframework/web/socket/config/HandlersBeanDefinitionParserTests.java
@@ -16,6 +16,9 @@ package org.springframework.web.socket.config; +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; + import java.io.IOException; import java.io.InputStream; import java.util.Arrays; @@ -64,9 +67,6 @@ import org.springframework.web.socket.sockjs.transport.handler.XhrRece...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
@@ -73,6 +73,7 @@ import org.springframework.web.socket.handler.WebSocketHandlerDecorator; import org.springframework.web.socket.handler.WebSocketHandlerDecoratorFactory; import org.springframework.web.socket.messaging.DefaultSimpUserRegistry; +import org.springframework.web.socket.messaging.StompSubProtocolErrorHan...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/test/java/org/springframework/web/socket/config/annotation/WebMvcStompEndpointRegistryTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,16 +17,18 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
d1cc8bac5cc4612caaa42e625b80b789a9c1dd80.json
Add config option for StompSubProtocolErrorHandler Issue: SPR-13142
spring-websocket/src/test/resources/org/springframework/web/socket/config/websocket-config-broker-simple.xml
@@ -33,6 +33,8 @@ <websocket:sockjs/> </websocket:stomp-endpoint> + <websocket:stomp-error-handler ref="errorHandler" /> + <websocket:simple-broker prefix="/topic, /queue" heartbeat="15000,15000" scheduler="scheduler" /> </websocket:message-broker> @@ -47,6 +49,7 @@ <bean id="myHandler" class="org....
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ import java.lang.annotatio...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListenerAnnotationBeanPostProcessor.java
@@ -199,8 +199,8 @@ public Object postProcessAfterInitialization(final Object bean, String beanName) ReflectionUtils.doWithMethods(targetClass, new ReflectionUtils.MethodCallback() { @Override public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException { - JmsListener jms...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/main/java/org/springframework/jms/annotation/JmsListeners.java
@@ -0,0 +1,44 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/java/org/springframework/jms/annotation/AbstractJmsAnnotationDrivenTests.java
@@ -73,6 +73,12 @@ public abstract class AbstractJmsAnnotationDrivenTests { @Test public abstract void jmsHandlerMethodFactoryConfiguration() throws JMSException; + @Test + public abstract void jmsListenerIsRepeatable(); + + @Test + public abstract void jmsListeners(); + /** * Test for {@link SampleBean} dis...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/java/org/springframework/jms/annotation/AnnotationDrivenNamespaceTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,6 +91,20 @@ public void jmsHandlerMethod...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/java/org/springframework/jms/annotation/EnableJmsTests.java
@@ -112,6 +112,20 @@ public void jmsHandlerMethodFactoryConfiguration() throws JMSException { testJmsHandlerMethodFactoryConfiguration(context); } + @Override + public void jmsListenerIsRepeatable() { + ConfigurableApplicationContext context = new AnnotationConfigApplicationContext( + EnableJmsDefaultContain...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/java/org/springframework/jms/config/JmsListenerContainerTestFactory.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,25 +17,30 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/resources/org/springframework/jms/annotation/annotation-driven-jms-listener-repeatable.xml
@@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:jms="http://www.springframework.org/schema/jms" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www....
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
spring-jms/src/test/resources/org/springframework/jms/annotation/annotation-driven-jms-listeners.xml
@@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:jms="http://www.springframework.org/schema/jms" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www....
true
Other
spring-projects
spring-framework
4631add6cfe2537cc6bd5a442fe74a6604a62207.json
Add support for repeatable JmsListener Previously, a method could only declare one Jms endpoint so if several destinations share the exact same business logic, you'd still need one separate method declaration per destination. We now make sure that JmsListener is a repeatable annotation, introducing JmsListeners for p...
src/asciidoc/integration.adoc
@@ -2577,6 +2577,10 @@ provides). The annotated endpoint infrastructure creates a message listener container behind the scenes for each annotated method, using a `JmsListenerContainerFactory`. +TIP: `@JmsListener` is a _repeatable_ annotation so it is possible to associate several +JMS destinations to the same meth...
true
Other
spring-projects
spring-framework
e134e3e51b0253cb120e50be31f0b4a55139b8f4.json
Fix formatting issues in the testing chapter
src/asciidoc/testing.adoc
@@ -548,8 +548,8 @@ for examples and further details. + A class-level annotation that is used to configure the locations of properties files and -inlined properties to be added to the `Environment`'s set of `PropertySources` for an -`ApplicationContext` loaded for an integration test. +inlined properties to be adde...
false
Other
spring-projects
spring-framework
a0040245ca3bf968aec55db00f401e10b71a875f.json
Resolve @Repeatable container in AnnotationUtils This commit introduces support for automatically resolving a container annotation configured via @Repeatable in AnnotationUtils' getRepeatableAnnotations() and getDeclaredRepeatableAnnotations() methods. Issue: SPR-13068
spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java
@@ -143,7 +143,7 @@ public static Set<String> getMetaAnnotationTypes(AnnotatedElement element, Strin final Set<String> types = new LinkedHashSet<String>(); try { - Annotation annotation = getAnnotation(element, annotationName); + Annotation annotation = AnnotationUtils.getAnnotation(element, annotationName)...
true
Other
spring-projects
spring-framework
a0040245ca3bf968aec55db00f401e10b71a875f.json
Resolve @Repeatable container in AnnotationUtils This commit introduces support for automatically resolving a container annotation configured via @Repeatable in AnnotationUtils' getRepeatableAnnotations() and getDeclaredRepeatableAnnotations() methods. Issue: SPR-13068
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
@@ -250,10 +250,12 @@ public static Annotation[] getAnnotations(Method method) { } /** - * Delegates to {@link #getRepeatableAnnotations}. + * Delegates to {@link #getRepeatableAnnotations(AnnotatedElement, Class, Class)}. * @since 4.0 - * @deprecated As of Spring Framework 4.2, use {@link #getRepeatableAnn...
true
Other
spring-projects
spring-framework
a0040245ca3bf968aec55db00f401e10b71a875f.json
Resolve @Repeatable container in AnnotationUtils This commit introduces support for automatically resolving a container annotation configured via @Repeatable in AnnotationUtils' getRepeatableAnnotations() and getDeclaredRepeatableAnnotations() methods. Issue: SPR-13068
spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java
@@ -520,7 +520,11 @@ public void getRepeatableAnnotationsDeclaredOnClassWithMissingAttributeAliasDecl public void getRepeatableAnnotationsDeclaredOnClassWithAttributeAliases() throws Exception { final List<String> expectedLocations = Arrays.asList("A", "B"); - Set<ContextConfig> annotations = getRepeatableAnnot...
true
Other
spring-projects
spring-framework
80622803b245c63be5a9cfc21fa53171f8372edf.json
Fix error in HTML syntax in Javadoc
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
@@ -215,6 +215,7 @@ public static <A extends Annotation> A getAnnotation(Method method, Class<A> ann * resolvable (e.g. because nested Class values in annotation attributes * failed to resolve at runtime) * @since 4.0.8 + * @see AnnotatedElement#getAnnotations() */ public static Annotation[] getAnnotatio...
false
Other
spring-projects
spring-framework
042519043f774385b30591bf2e6476b7cbee9dfc.json
Update Javadoc on @ResponseStatus Issue: SPR-11193
spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java
@@ -60,11 +60,12 @@ /** * The <em>reason</em> to be used for the response. - * <p>If this attribute is not set, it will default to the standard status - * message for the status code. Note that due to the use of + * <p><strong>Note:</strong> due to the use of * {@code HttpServletResponse.sendError(int, Str...
false
Other
spring-projects
spring-framework
0ef8af4798222eccfa69d3e3a0c339b170e6d072.json
Use .setStatus in ResponseStatusExceptionResolver Before this change ResponseStatusExceptionResolver always used .sendError despite the javadoc on @ResponseStatus#code. This was perhaps justifiable from a HandlerExceptionResolver. Nevertheless .setStatus should be more REST API friendly while still marking the respons...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/annotation/ResponseStatusExceptionResolver.java
@@ -101,7 +101,7 @@ protected ModelAndView resolveResponseStatus(ResponseStatus responseStatus, Http reason = this.messageSource.getMessage(reason, null, reason, LocaleContextHolder.getLocale()); } if (!StringUtils.hasLength(reason)) { - response.sendError(statusCode); + response.setStatus(statusCode); ...
false
Other
spring-projects
spring-framework
8d7812b1b6c47c3edef1332639cb57b92327ec46.json
Raise IAE when no converter matches return type Before this change the AbstractMessageConverterMethodProcessor always raised a 406 if it couldn't find a converter. However if the reason for not finding it is because there is simply no converter for the return value type (i.e. programming error) and doesn't have anythi...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java
@@ -32,6 +32,7 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.http.server.ServletServerHttpResponse; +import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; import org.s...
true
Other
spring-projects
spring-framework
8d7812b1b6c47c3edef1332639cb57b92327ec46.json
Raise IAE when no converter matches return type Before this change the AbstractMessageConverterMethodProcessor always raised a 406 if it couldn't find a converter. However if the reason for not finding it is because there is simply no converter for the return value type (i.e. programming error) and doesn't have anythi...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java
@@ -16,11 +16,15 @@ package org.springframework.web.servlet.mvc.method.annotation; +import static org.junit.Assert.*; + +import java.io.ByteArrayOutputStream; +import java.io.OutputStream; import java.io.Serializable; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.ArrayList; -...
true
Other
spring-projects
spring-framework
8d7812b1b6c47c3edef1332639cb57b92327ec46.json
Raise IAE when no converter matches return type Before this change the AbstractMessageConverterMethodProcessor always raised a 406 if it couldn't find a converter. However if the reason for not finding it is because there is simply no converter for the return value type (i.e. programming error) and doesn't have anythi...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java
@@ -16,9 +16,12 @@ package org.springframework.web.servlet.mvc.method.annotation; +import static org.junit.Assert.*; +import static org.mockito.Mockito.*; + import java.lang.reflect.Method; import java.util.ArrayList; -import java.util.Arrays; +import java.util.Collections; import java.util.List; import java...
true
Other
spring-projects
spring-framework
63f01c851fe9b0dfc8e3df6c9428b19b471ee99d.json
Fix exception in AntPathMatcher for leading * Issue: SPR-13139
spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
@@ -747,7 +747,7 @@ else if (this.pattern.charAt(pos) == '*') { this.doubleWildcards++; pos += 2; } - else if (!this.pattern.substring(pos - 1).equals(".*")) { + else if (pos > 0 && !this.pattern.substring(pos - 1).equals(".*")) { this.singleWildcards++; pos++; }
true
Other
spring-projects
spring-framework
63f01c851fe9b0dfc8e3df6c9428b19b471ee99d.json
Fix exception in AntPathMatcher for leading * Issue: SPR-13139
spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java
@@ -479,6 +479,10 @@ public void patternComparator() { // longer is better assertEquals(1, comparator.compare("/hotels", "/hotels2")); + + //SPR-13139 + assertEquals(-1, comparator.compare("*", "*/**")); + assertEquals(1, comparator.compare("*/**", "*")); } @Test
true
Other
spring-projects
spring-framework
be4329545a1e7fd336a7dc3c5ef70cd9a125912a.json
Update doc for JmsResponse Issue: SPR-13133
src/asciidoc/integration.adoc
@@ -2739,8 +2739,8 @@ annotate the payload with `@Valid` and configure the necessary validator as foll } ---- -[[jms-annotated-reply]] -==== Reply management +[[jms-annotated-response]] +==== Response management The existing support in <<jms-receiving-async-message-listener-adapter,MessageListenerAdapter>> alr...
true
Other
spring-projects
spring-framework
be4329545a1e7fd336a7dc3c5ef70cd9a125912a.json
Update doc for JmsResponse Issue: SPR-13133
src/asciidoc/whats-new.adoc
@@ -486,6 +486,7 @@ public @interface MyTestConfig { * The `autoStartup` attribute can be controlled via `JmsListenerContainerFactory`. * The type of the reply `Destination` can now be configured per listener container. * The value of the `@SendTo` annotation can now use a SpEL expression. +* The response destinatio...
true
Other
spring-projects
spring-framework
f9881511637c52836c8a1743fa586113de5cdfd5.json
Improve charset management in XpathResultMatchers Prior to this change, `XpathResultMatchers` and more generally the `MockHttpServletResponse` would default to ISO-8859-1 encoding even when it's not supposed to. The Servlet/HTTP specs mention this encoding for all `text/*` mime types when decoding bodies to Strings, b...
spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java
@@ -140,6 +140,14 @@ public boolean isWriterAccessAllowed() { return this.writerAccessAllowed; } + /** + * Return whether the character encoding has been set. + * <p>If {@code false}, {@link #getCharacterEncoding()} will return a default encoding value. + */ + public boolean isCharset() { + return charset; +...
true
Other
spring-projects
spring-framework
f9881511637c52836c8a1743fa586113de5cdfd5.json
Improve charset management in XpathResultMatchers Prior to this change, `XpathResultMatchers` and more generally the `MockHttpServletResponse` would default to ISO-8859-1 encoding even when it's not supposed to. The Servlet/HTTP specs mention this encoding for all `text/*` mime types when decoding bodies to Strings, b...
spring-test/src/main/java/org/springframework/test/util/XpathExpectationsHelper.java
@@ -16,9 +16,13 @@ package org.springframework.test.util; -import java.io.StringReader; +import static org.hamcrest.MatcherAssert.*; +import static org.springframework.test.util.AssertionErrors.*; + +import java.io.ByteArrayInputStream; import java.util.Collections; import java.util.Map; + import javax.xml.name...
true
Other
spring-projects
spring-framework
f9881511637c52836c8a1743fa586113de5cdfd5.json
Improve charset management in XpathResultMatchers Prior to this change, `XpathResultMatchers` and more generally the `MockHttpServletResponse` would default to ISO-8859-1 encoding even when it's not supposed to. The Servlet/HTTP specs mention this encoding for all `text/*` mime types when decoding bodies to Strings, b...
spring-test/src/main/java/org/springframework/test/web/client/match/XpathRequestMatchers.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,6 +37,8 @@ */ public class XpathReque...
true
Other
spring-projects
spring-framework
f9881511637c52836c8a1743fa586113de5cdfd5.json
Improve charset management in XpathResultMatchers Prior to this change, `XpathResultMatchers` and more generally the `MockHttpServletResponse` would default to ISO-8859-1 encoding even when it's not supposed to. The Servlet/HTTP specs mention this encoding for all `text/*` mime types when decoding bodies to Strings, b...
spring-test/src/main/java/org/springframework/test/web/servlet/result/XpathResultMatchers.java
@@ -22,6 +22,7 @@ import org.hamcrest.Matcher; import org.w3c.dom.Node; +import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.test.util.XpathExpectationsHelper; import org.springframework.test.web.servlet.MvcResult; import org.springframework.test.web.servlet.ResultMatcher; @@ ...
true
Other
spring-projects
spring-framework
f9881511637c52836c8a1743fa586113de5cdfd5.json
Improve charset management in XpathResultMatchers Prior to this change, `XpathResultMatchers` and more generally the `MockHttpServletResponse` would default to ISO-8859-1 encoding even when it's not supposed to. The Servlet/HTTP specs mention this encoding for all `text/*` mime types when decoding bodies to Strings, b...
spring-test/src/test/java/org/springframework/test/web/servlet/result/XpathResultMatchersTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,11 +15,15 @@ */ package org.springfra...
true
Other
spring-projects
spring-framework
75c88ffbeba845c49c4869400d7206ff240339cd.json
Remove deprecated warnings
spring-context/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceTests.java
@@ -44,6 +44,7 @@ * @author Rob Harrop * @author Chris Beams */ +@SuppressWarnings("deprecation") public class CommonsPoolTargetSourceTests { /**
false
Other
spring-projects
spring-framework
bccd59e6c8845c6521d3b325bea89bcbcbe4d833.json
Use findAnnotationAttributes() where appropriate This commit updates code that previously used getAnnotationAttributes() in AnnotatedElementUtils to use findAnnotationAttributes(), where appropriate. Issue: SPR-12738
spring-test/src/main/java/org/springframework/test/context/jdbc/MergedSqlConfig.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,7 +86,7 @@ private static String getStri...
true
Other
spring-projects
spring-framework
bccd59e6c8845c6521d3b325bea89bcbcbe4d833.json
Use findAnnotationAttributes() where appropriate This commit updates code that previously used getAnnotationAttributes() in AnnotatedElementUtils to use findAnnotationAttributes(), where appropriate. Issue: SPR-12738
spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java
@@ -380,7 +380,7 @@ protected long getJUnitTimeout(FrameworkMethod frameworkMethod) { * @return the timeout, or {@code 0} if none was specified */ protected long getSpringTimeout(FrameworkMethod frameworkMethod) { - AnnotationAttributes annAttrs = AnnotatedElementUtils.getAnnotationAttributes(frameworkMethod.g...
true
Other
spring-projects
spring-framework
bccd59e6c8845c6521d3b325bea89bcbcbe4d833.json
Use findAnnotationAttributes() where appropriate This commit updates code that previously used getAnnotationAttributes() in AnnotatedElementUtils to use findAnnotationAttributes(), where appropriate. Issue: SPR-12738
spring-test/src/main/java/org/springframework/test/context/support/DirtiesContextTestExecutionListener.java
@@ -156,8 +156,8 @@ private void beforeOrAfterTestMethod(TestContext testContext, String phase, Meth Assert.notNull(testMethod, "The test method of the supplied TestContext must not be null"); final String annotationType = DirtiesContext.class.getName(); - AnnotationAttributes methodAnnAttrs = AnnotatedElement...
true
Other
spring-projects
spring-framework
bccd59e6c8845c6521d3b325bea89bcbcbe4d833.json
Use findAnnotationAttributes() where appropriate This commit updates code that previously used getAnnotationAttributes() in AnnotatedElementUtils to use findAnnotationAttributes(), where appropriate. Issue: SPR-12738
spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -500,7 +500,7 @@ TransactionConfigurationAtt...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
@@ -17,7 +17,6 @@ package org.springframework.messaging.simp.config; import java.util.ArrayList; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -43,14 +42,16 @@ import org.springframework.messaging.simp.broker.SimpleBrokerMessageHandler; import org.spri...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java
@@ -23,6 +23,7 @@ import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.broker.SimpleBrokerMessageHandler; import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; +import org.springframework.messaging.simp.user.SimpUserRegistry; import org.spring...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/StompBrokerRelayRegistration.java
@@ -49,6 +49,10 @@ public class StompBrokerRelayRegistration extends AbstractBrokerRegistration { private boolean autoStartup = true; + private String userDestinationBroadcast; + + private String userRegistryBroadcast; + public StompBrokerRelayRegistration(SubscribableChannel clientInboundChannel, Message...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/DefaultUserDestinationResolver.java
@@ -33,8 +33,7 @@ /** * A default implementation of {@code UserDestinationResolver} that relies - * on a {@link org.springframework.messaging.simp.user.UserSessionRegistry} to - * find active sessions for a user. + * on a {@link SimpUserRegistry} to find active sessions for a user. * * <p>When a user attempts ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/DefaultUserSessionRegistry.java
@@ -29,7 +29,11 @@ * * @author Rossen Stoyanchev * @since 4.0 + * @deprecated as of 4.2 this class is no longer used, see deprecation notes + * on {@link UserSessionRegistry} for more details. */ +@Deprecated +@SuppressWarnings({"deprecation", "unused"}) public class DefaultUserSessionRegistry implements UserS...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/MultiServerUserRegistry.java
@@ -0,0 +1,488 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/SimpSession.java
@@ -0,0 +1,43 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/SimpSubscription.java
@@ -0,0 +1,41 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/SimpSubscriptionMatcher.java
@@ -0,0 +1,33 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/SimpUser.java
@@ -0,0 +1,52 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/SimpUserRegistry.java
@@ -0,0 +1,49 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserDestinationMessageHandler.java
@@ -108,15 +108,15 @@ public UserDestinationResolver getUserDestinationResolver() { * <p>By default this is not set. * @param destination the target destination. */ - public void setUserDestinationBroadcast(String destination) { + public void setBroadcastDestination(String destination) { this.broadcastHandl...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserDestinationResult.java
@@ -87,7 +87,7 @@ public String getSubscribeDestination() { * @return the user name or {@code null} if we have a session id only such as * when the user is not authenticated; in such cases it is possible to use * sessionId in place of a user name thus removing the need for a user-to-session - * lookup via {@l...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserRegistryMessageHandler.java
@@ -0,0 +1,136 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistry.java
@@ -19,34 +19,41 @@ import java.util.Set; /** - * A registry for looking up active user sessions. For use when resolving user - * destinations. + * A contract for adding and removing user sessions. + * + * <p>As of 4.2 this interface extends {@link SimpUserRegistry}. + * exposing methods to return all registered us...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserSessionRegistryAdapter.java
@@ -0,0 +1,121 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/package-info.java
@@ -3,7 +3,7 @@ * unique to a user's sessions), primarily translating the destinations and then * forwarding the updated message to the broker. * - * <p>Also included is {@link org.springframework.messaging.simp.user.UserSessionRegistry} + * <p>Also included is {@link org.springframework.messaging.simp.user.SimpU...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java
@@ -16,6 +16,9 @@ package org.springframework.messaging.simp.config; +import static org.junit.Assert.*; +import static org.mockito.Mockito.*; + import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -51,8 +54,10 @@ import org.springframework.messaging.simp.stomp.StompBrokerRelayMessag...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/config/StompBrokerRelayRegistrationTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,8 @@ import static org.junit.Asse...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/DefaultUserDestinationResolverTests.java
@@ -17,6 +17,9 @@ package org.springframework.messaging.simp.user; import static org.junit.Assert.*; +import static org.mockito.Mockito.*; + +import java.security.Principal; import org.junit.Before; import org.junit.Test; @@ -36,68 +39,72 @@ */ public class DefaultUserDestinationResolverTests { - public st...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/DefaultUserSessionRegistryTests.java
@@ -1,82 +0,0 @@ -/* - * Copyright 2002-2015 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/MultiServerUserRegistryTests.java
@@ -0,0 +1,167 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/TestSimpSession.java
@@ -0,0 +1,62 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/TestSimpSubscription.java
@@ -0,0 +1,52 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/TestSimpUser.java
@@ -0,0 +1,62 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/UserDestinationMessageHandlerTests.java
@@ -25,9 +25,7 @@ import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; -import org.mockito.Mock; import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; import org.springframework.messaging.Message; import org.springframework.messaging.StubMessageChannel; @@ -50,16 +48,...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-messaging/src/test/java/org/springframework/messaging/simp/user/UserRegistryMessageHandlerTests.java
@@ -0,0 +1,183 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParser.java
@@ -48,8 +48,9 @@ import org.springframework.messaging.simp.broker.SimpleBrokerMessageHandler; import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; import org.springframework.messaging.simp.user.DefaultUserDestinationResolver; -import org.springframework.messaging.simp.user.DefaultUserSess...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketNamespaceUtils.java
@@ -62,7 +62,7 @@ public static RuntimeBeanReference registerHandshakeHandler(Element element, Par return handlerRef; } - public static RuntimeBeanReference registerSockJsService(Element element, String sockJsSchedulerName, + public static RuntimeBeanReference registerSockJsService(Element element, String schedu...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebMvcStompEndpointRegistry.java
@@ -22,7 +22,6 @@ import java.util.Map; import org.springframework.context.ApplicationContext; -import org.springframework.messaging.simp.user.UserSessionRegistry; import org.springframework.scheduling.TaskScheduler; import org.springframework.util.Assert; import org.springframework.util.MultiValueMap; @@ -63,11...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurationSupport.java
@@ -25,11 +25,14 @@ import org.springframework.messaging.simp.broker.AbstractBrokerMessageHandler; import org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration; import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler; +import org.springframework.messaging.simp.user.SimpU...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/AbstractSubProtocolEvent.java
@@ -16,6 +16,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.context.ApplicationEvent; import org.springframework.messaging.Message; import org.springframework.util.Assert; @@ -32,6 +34,8 @@ public abstract class AbstractSubProtocolEvent exten...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java
@@ -0,0 +1,336 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionConnectEvent.java
@@ -16,6 +16,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.messaging.Message; /** @@ -41,4 +43,8 @@ public SessionConnectEvent(Object source, Message<byte[]> message) { super(source, message); } + public SessionConnectEvent(Object so...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionConnectedEvent.java
@@ -16,6 +16,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.messaging.Message; /** @@ -37,4 +39,8 @@ public SessionConnectedEvent(Object source, Message<byte[]> message) { super(source, message); } + public SessionConnectedEvent(Objec...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionDisconnectEvent.java
@@ -16,6 +16,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.messaging.Message; import org.springframework.util.Assert; import org.springframework.web.socket.CloseStatus; @@ -45,14 +47,21 @@ public class SessionDisconnectEvent extends Abstract...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionSubscribeEvent.java
@@ -17,6 +17,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.messaging.Message; /** @@ -34,4 +36,8 @@ public SessionSubscribeEvent(Object source, Message<byte[]> message) { super(source, message); } + public SessionSubscribeEvent(Objec...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionUnsubscribeEvent.java
@@ -17,6 +17,8 @@ package org.springframework.web.socket.messaging; +import java.security.Principal; + import org.springframework.messaging.Message; /** @@ -34,4 +36,8 @@ public SessionUnsubscribeEvent(Object source, Message<byte[]> message) { super(source, message); } + public SessionUnsubscribeEvent(O...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java
@@ -34,7 +34,6 @@ import org.springframework.context.ApplicationEventPublisherAware; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; -import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.simp.SimpAttributes; import org.springfr...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.2.xsd
@@ -344,6 +344,27 @@ ]]></xsd:documentation> </xsd:annotation> </xsd:attribute> + <xsd:attribute name="user-destination-broadcast" type="xsd:string"> + <xsd:annotation> + <xsd:documentation><![CDATA[ + Set a destination to broadcast messages to that remain unresolved because + the user is ...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
@@ -16,14 +16,20 @@ package org.springframework.web.socket.config; +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; + import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; +import java.util.Collections; import java.util.List; +import java.util.Map; impor...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/java/org/springframework/web/socket/config/annotation/WebMvcStompEndpointRegistryTests.java
@@ -16,24 +16,21 @@ package org.springframework.web.socket.config.annotation; +import static org.junit.Assert.*; + import java.util.Map; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import org.springframework.messaging.SubscribableChannel; -import org.springframework.messagi...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/java/org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurationSupportTests.java
@@ -136,19 +136,16 @@ public void brokerChannel() { } @Test - public void webSocketTransportOptions() { + public void webSocketHandler() { ApplicationContext config = createConfig(TestChannelConfig.class, TestConfigurer.class); - SubProtocolWebSocketHandler subProtocolWebSocketHandler = - config.getBean("s...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistryTests.java
@@ -0,0 +1,199 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompSubProtocolHandlerTests.java
@@ -47,9 +47,7 @@ import org.springframework.messaging.simp.stomp.StompCommand; import org.springframework.messaging.simp.stomp.StompEncoder; import org.springframework.messaging.simp.stomp.StompHeaderAccessor; -import org.springframework.messaging.simp.user.DefaultUserSessionRegistry; import org.springframework.me...
true
Other
spring-projects
spring-framework
281588d7bb9b4c15e72d743f5d88cc5ff39ff2de.json
Add SimpUserRegistry with multi-server support This change introduces SimpUserRegistry exposing an API to access information about connected users, their sessions, and subscriptions with STOMP/WebSocket messaging. Provides are methods to access users as well as a method to find subscriptions given a Matcher strategy. ...
spring-websocket/src/test/resources/org/springframework/web/socket/config/websocket-config-broker-relay.xml
@@ -4,15 +4,17 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket.xsd"> - <websocket:message-broker order="2" user-desti...
true
Other
spring-projects
spring-framework
7ea50238a65442e6a9a8856142243bdec49e8806.json
Upgrade Netty to 4.0.28.Final
build.gradle
@@ -50,7 +50,7 @@ configure(allprojects) { project -> ext.jrubyVersion = "1.7.19" ext.jtaVersion = "1.2" ext.junitVersion = "4.12" - ext.nettyVersion = "4.0.27.Final" + ext.nettyVersion = "4.0.28.Final" ext.openjpaVersion = "2.2.2" // 2.3.0 not Java 8 compatible ...
false
Other
spring-projects
spring-framework
fcf75c90b12f9344d70a7d8f89ce8c3ae9ee46c9.json
Fix broken AnnotationAttributesTests Issue: SPR-13007
spring-core/src/main/java/org/springframework/core/annotation/AnnotationAttributes.java
@@ -117,7 +117,7 @@ private <T> T doGet(String attributeName, Class<T> expectedType) { else { throw new IllegalArgumentException( String.format("Attribute '%s' is of type [%s], but [%s] was expected.", - attributeName, value.getClass().getName(), expectedType.getName())); + attributeName, valu...
true
Other
spring-projects
spring-framework
fcf75c90b12f9344d70a7d8f89ce8c3ae9ee46c9.json
Fix broken AnnotationAttributesTests Issue: SPR-13007
spring-core/src/test/java/org/springframework/core/annotation/AnnotationAttributesTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,9 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
cf51f0c0aa84d48de5b4ac2ea1029d80efb552c7.json
Assert pre-conditions in AopTestUtils Issue: SPR-13005
spring-test/src/main/java/org/springframework/test/util/AopTestUtils.java
@@ -18,6 +18,7 @@ import org.springframework.aop.framework.Advised; import org.springframework.aop.support.AopUtils; +import org.springframework.util.Assert; /** * {@code AopTestUtils} is a collection of AOP-related utility methods for @@ -41,14 +42,16 @@ public class AopTestUtils { * be returned; otherwise...
true
Other
spring-projects
spring-framework
cf51f0c0aa84d48de5b4ac2ea1029d80efb552c7.json
Assert pre-conditions in AopTestUtils Issue: SPR-13005
spring-test/src/test/java/org/springframework/test/util/AopTestUtilsTests.java
@@ -36,6 +36,11 @@ public class AopTestUtilsTests { private final FooImpl foo = new FooImpl(); + @Test(expected = IllegalArgumentException.class) + public void getTargetObjectForNull() { + getTargetObject(null); + } + @Test public void getTargetObjectForNonProxiedObject() { Foo target = getTargetObject(fo...
true
Other
spring-projects
spring-framework
efe3a35da871a7ef34148dfb65d6a96cac1fccb9.json
Introduce AOP testing utilities This commit introduces support in the spring-test module for obtaining a reference to the underlying target object hidden behind one or more proxies. Specifically this commit introduces AopTestUtils with two methods: - getTargetObject(Object) - getUltimateTargetObject(Object) Issu...
spring-test/src/main/java/org/springframework/test/util/AopTestUtils.java
@@ -0,0 +1,96 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
efe3a35da871a7ef34148dfb65d6a96cac1fccb9.json
Introduce AOP testing utilities This commit introduces support in the spring-test module for obtaining a reference to the underlying target object hidden behind one or more proxies. Specifically this commit introduces AopTestUtils with two methods: - getTargetObject(Object) - getUltimateTargetObject(Object) Issu...
spring-test/src/test/java/org/springframework/test/util/AopTestUtilsTests.java
@@ -0,0 +1,138 @@ +/* + * Copyright 2002-2015 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
c7cdbe126db6ab5e3422e764d4effa3a5ef2148b.json
Introduce failing test case in AntPathMatcherTests Issue: SPR-12998
spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java
@@ -24,6 +24,7 @@ import java.util.Map; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.*; @@ -34,6 +35,7 @@ * @author Juergen Hoeller * @author Arjen Poutsma * @author Rossen Stoyanchev + * @author Sam Brannen */ public class AntPathMatcherTests...
false
Other
spring-projects
spring-framework
76beb36e4bd1162bed6ff91f4ba5df6f9e47b528.json
Remove duplicate separators when combining paths Prior to this commit, AntPathMatcher would not correctly combine a path that ends with a separator with a path that starts with a separator. For example, `/foo/` + `/bar` combined into `/foo//bar`. Specifically, this commit: - Removes the duplicated separator in comb...
spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,26 +26,38 @@ import java.util.regex.Pat...
true
Other
spring-projects
spring-framework
76beb36e4bd1162bed6ff91f4ba5df6f9e47b528.json
Remove duplicate separators when combining paths Prior to this commit, AntPathMatcher would not correctly combine a path that ends with a separator with a path that starts with a separator. For example, `/foo/` + `/bar` combined into `/foo//bar`. Specifically, this commit: - Removes the duplicated separator in comb...
spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,7 +63,7 @@ public void match() { asse...
true
Other
spring-projects
spring-framework
76beb36e4bd1162bed6ff91f4ba5df6f9e47b528.json
Remove duplicate separators when combining paths Prior to this commit, AntPathMatcher would not correctly combine a path that ends with a separator with a path that starts with a separator. For example, `/foo/` + `/bar` combined into `/foo//bar`. Specifically, this commit: - Removes the duplicated separator in comb...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractRequestCondition.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,17 +59,27 @@ public String toString() { ...
true