Juergen Hoeller
11 years ago
committed by
unknown
55 changed files with 210 additions and 420 deletions
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
/* |
||||
* Copyright 2002-2013 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
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
/** |
||||
* Support for the {@code <websocket:message-broker>} XML namespace element. |
||||
*/ |
||||
package org.springframework.web.socket.messaging.config.xml; |
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
/* |
||||
* Copyright 2002-2013 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
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
/** |
||||
* Support for the {@code <websocket:handlers>} XML namespace element. |
||||
*/ |
||||
package org.springframework.web.socket.server.config.xml; |
@ -1,22 +0,0 @@
@@ -1,22 +0,0 @@
|
||||
/* |
||||
* Copyright 2002-2013 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
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
/** |
||||
* Server classes for use with standard Java WebSocket endpoints providing configuration |
||||
* and initialization support. |
||||
*/ |
||||
package org.springframework.web.socket.server.endpoint; |
||||
|
@ -1,17 +1 @@
@@ -1,17 +1 @@
|
||||
# |
||||
# Copyright 2002-2013 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 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
# |
||||
|
||||
http\://www.springframework.org/schema/websocket=org.springframework.web.socket.messaging.config.xml.WebSocketNamespaceHandler |
||||
http\://www.springframework.org/schema/websocket=org.springframework.web.socket.config.WebSocketNamespaceHandler |
||||
|
@ -1,18 +1,2 @@
@@ -1,18 +1,2 @@
|
||||
# |
||||
# Copyright 2002-2013 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 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
# |
||||
|
||||
http\://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd=org/springframework/web/socket/server/config/xml/spring-websocket-4.0.xsd |
||||
http\://www.springframework.org/schema/websocket/spring-websocket.xsd=org/springframework/web/socket/server/config/xml/spring-websocket-4.0.xsd |
||||
http\://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd=org/springframework/web/socket/config/spring-websocket-4.0.xsd |
||||
http\://www.springframework.org/schema/websocket/spring-websocket.xsd=org/springframework/web/socket/config/spring-websocket-4.0.xsd |
||||
|
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:message-broker application-destination-prefix="/app" user-destination-prefix="/personal"> |
||||
<websocket:stomp-endpoint path=" /foo,/bar"> |
||||
<websocket:handshake-handler ref="myHandler"/> |
||||
</websocket:stomp-endpoint> |
||||
<websocket:stomp-endpoint path="/test,/sockjs"> |
||||
<websocket:handshake-handler ref="myHandler"/> |
||||
<websocket:sockjs/> |
||||
</websocket:stomp-endpoint> |
||||
<websocket:simple-broker prefix="/topic"/> |
||||
</websocket:message-broker> |
||||
|
||||
<bean id="myHandler" class="org.springframework.web.socket.config.TestHandshakeHandler"/> |
||||
|
||||
</beans> |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers order="2"> |
||||
<websocket:mapping path="/foo" handler="fooHandler"/> |
||||
<websocket:mapping path="/test" handler="testHandler"/> |
||||
<websocket:handshake-handler ref="testHandshakeHandler"/> |
||||
<websocket:handshake-interceptors> |
||||
<bean class="org.springframework.web.socket.config.FooTestInterceptor"/> |
||||
<ref bean="barTestInterceptor"/> |
||||
</websocket:handshake-interceptors> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.config.TestWebSocketHandler"/> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.config.FooWebSocketHandler"/> |
||||
|
||||
<bean id="barTestInterceptor" class="org.springframework.web.socket.config.BarTestInterceptor"/> |
||||
<bean id="testHandshakeHandler" class="org.springframework.web.socket.config.TestHandshakeHandler"/> |
||||
|
||||
</beans> |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/test" handler="testHandler"/> |
||||
<websocket:mapping path="/foo/" handler="fooHandler"/> |
||||
<websocket:sockjs/> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.config.TestWebSocketHandler"/> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.config.FooWebSocketHandler"/> |
||||
|
||||
</beans> |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/foo,/bar" handler="fooHandler"/> |
||||
</websocket:handlers> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/test" handler="testHandler"/> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.config.TestWebSocketHandler"/> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.config.FooWebSocketHandler"/> |
||||
|
||||
</beans> |
@ -1,35 +0,0 @@
@@ -1,35 +0,0 @@
|
||||
<!-- |
||||
~ Copyright 2002-2013 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 |
||||
~ |
||||
~ Unless required by applicable law or agreed to in writing, software |
||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
~ See the License for the specific language governing permissions and |
||||
~ limitations under the License. |
||||
--> |
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:message-broker application-destination-prefix="/app" user-destination-prefix="/personal"> |
||||
<websocket:stomp-endpoint path=" /foo,/bar"> |
||||
<websocket:handshake-handler ref="myHandler" /> |
||||
</websocket:stomp-endpoint> |
||||
<websocket:stomp-endpoint path="/test,/sockjs"> |
||||
<websocket:handshake-handler ref="myHandler" /> |
||||
<websocket:sockjs /> |
||||
</websocket:stomp-endpoint> |
||||
<websocket:simple-broker prefix="/topic" /> |
||||
</websocket:message-broker> |
||||
|
||||
<bean id="myHandler" class="org.springframework.web.socket.server.config.xml.TestHandshakeHandler" /> |
||||
</beans> |
@ -1,40 +0,0 @@
@@ -1,40 +0,0 @@
|
||||
<!-- |
||||
~ Copyright 2002-2013 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 |
||||
~ |
||||
~ Unless required by applicable law or agreed to in writing, software |
||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
~ See the License for the specific language governing permissions and |
||||
~ limitations under the License. |
||||
--> |
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers order="2"> |
||||
<websocket:mapping path="/foo" handler="fooHandler" /> |
||||
<websocket:mapping path="/test" handler="testHandler" /> |
||||
<websocket:handshake-handler ref="testHandshakeHandler" /> |
||||
<websocket:handshake-interceptors> |
||||
<bean class="org.springframework.web.socket.server.config.xml.FooTestInterceptor"/> |
||||
<ref bean="barTestInterceptor" /> |
||||
</websocket:handshake-interceptors> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.server.config.xml.TestWebSocketHandler" /> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.server.config.xml.FooWebSocketHandler" /> |
||||
|
||||
<bean id="barTestInterceptor" class="org.springframework.web.socket.server.config.xml.BarTestInterceptor"/> |
||||
<bean id="testHandshakeHandler" class="org.springframework.web.socket.server.config.xml.TestHandshakeHandler" /> |
||||
|
||||
</beans> |
@ -1,33 +0,0 @@
@@ -1,33 +0,0 @@
|
||||
<!-- |
||||
~ Copyright 2002-2013 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 |
||||
~ |
||||
~ Unless required by applicable law or agreed to in writing, software |
||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
~ See the License for the specific language governing permissions and |
||||
~ limitations under the License. |
||||
--> |
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/test" handler="testHandler" /> |
||||
<websocket:mapping path="/foo/" handler="fooHandler" /> |
||||
<websocket:sockjs/> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.server.config.xml.TestWebSocketHandler" /> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.server.config.xml.FooWebSocketHandler" /> |
||||
|
||||
</beans> |
@ -1,35 +0,0 @@
@@ -1,35 +0,0 @@
|
||||
<!-- |
||||
~ Copyright 2002-2013 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 |
||||
~ |
||||
~ Unless required by applicable law or agreed to in writing, software |
||||
~ distributed under the License is distributed on an "AS IS" BASIS, |
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
~ See the License for the specific language governing permissions and |
||||
~ limitations under the License. |
||||
--> |
||||
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:websocket="http://www.springframework.org/schema/websocket" |
||||
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-4.0.xsd"> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/foo,/bar" handler="fooHandler" /> |
||||
</websocket:handlers> |
||||
|
||||
<websocket:handlers> |
||||
<websocket:mapping path="/test" handler="testHandler" /> |
||||
</websocket:handlers> |
||||
|
||||
<bean id="testHandler" class="org.springframework.web.socket.server.config.xml.TestWebSocketHandler" /> |
||||
<bean id="fooHandler" class="org.springframework.web.socket.server.config.xml.FooWebSocketHandler" /> |
||||
|
||||
</beans> |
Loading…
Reference in new issue