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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityConfigurer.java | @@ -1,151 +0,0 @@
-/*
- * Copyright 2002-2012 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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityLayoutView.java | @@ -1,188 +0,0 @@
-/*
- * Copyright 2002-2012 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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityLayoutViewResolver.java | @@ -1,110 +0,0 @@
-/*
- * Copyright 2002-2012 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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityToolboxView.java | @@ -1,134 +0,0 @@
-/*
- * Copyright 2002-2010 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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityView.java | @@ -1,578 +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
-... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/VelocityViewResolver.java | @@ -1,137 +0,0 @@
-/*
- * Copyright 2002-2012 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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/package-info.java | @@ -1,7 +0,0 @@
-/**
- * Support classes for the integration of
- * <a href="http://velocity.apache.org">Velocity</a>
- * as Spring web view technology.
- * Contains a View implementation for Velocity templates.
- */
-package org.springframework.web.servlet.view.velocity; | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/main/resources/org/springframework/web/servlet/view/velocity/spring.vm | @@ -1,320 +0,0 @@
-#**
- * spring.vm
- *
- * This file consists of a collection of Velocity macros aimed at easing
- * some of the common requirements of web applications - in particular
- * handling of forms.
- *
- * Spring's Velocity support will automatically make this file and therefore
- * all macros within it ava... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -141,8 +141,6 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/ViewResolutionIntegrationTests.java | @@ -39,7 +39,6 @@
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;
import org.springframework.web.servlet.view.groovy.GroovyMarkupConfigurer;
import org.springframework.web.servlet.view.tiles3.TilesConfigurer;
-import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/ViewResolverRegistryTests.java | @@ -38,8 +38,6 @@
import org.springframework.web.servlet.view.script.ScriptTemplateViewResolver;
import org.springframework.web.servlet.view.tiles3.TilesConfigurer;
import org.springframework.web.servlet.view.tiles3.TilesViewResolver;
-import org.springframework.web.servlet.view.velocity.VelocityConfigurer;
-import ... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/jasperreports/JasperReportViewResolverTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -21,7 +21,6 @@
import org.junit.Test;
im... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/TestVelocityEngine.java | @@ -1,56 +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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityConfigurerTests.java | @@ -1,171 +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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityMacroTests.java | @@ -1,266 +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 | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityRenderTests.java | @@ -1,173 +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
-... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityToolboxViewTests.java | @@ -1,83 +0,0 @@
-package org.springframework.web.servlet.view.velocity;
-
-import java.util.HashMap;
-import java.util.Map;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.velocity.Template;
-import org.apache.velocity.app.VelocityEngine;
-import org.... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityViewResolverTests.java | @@ -1,145 +0,0 @@
-package org.springframework.web.servlet.view.velocity;
-
-import java.util.Locale;
-
-import org.apache.velocity.Template;
-import org.apache.velocity.app.VelocityEngine;
-import org.junit.Test;
-
-import org.springframework.web.context.support.StaticWebApplicationContext;
-import org.springframework... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/java/org/springframework/web/servlet/view/velocity/VelocityViewTests.java | @@ -1,280 +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
-... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/config/mvc-config-view-resolution-content-negotiation.xml | @@ -3,8 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
- http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
- http://www.springframework.org/schema/beans http://www.sp... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/config/mvc-config-view-resolution.xml | @@ -2,15 +2,14 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
- xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
- ht... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/error.vm | @@ -1,4 +0,0 @@
-##
-## test template for Velocity view with missing method
-##
-$command.nonexistent() | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/ioerror.vm | @@ -1,4 +0,0 @@
-##
-## test template for Velocity view with exception
-##
-$command.unreliableFileOperation() | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/simple.vm | @@ -1,6 +0,0 @@
-##
-## test template for Velocity view
-##
-
-NAME
-$command.name | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/test-spr5172.vm | @@ -1,30 +0,0 @@
-##
-## test template for Velocity macro test class
-##
-
-FORM1
-#springFormInput("command.spouses[0].name" "")
-
-FORM2
-#springFormTextarea("command.spouses[0].name" "")
-
-FORM3
-#springFormSingleSelect("command.spouses[0].name" $nameOptionMap "")
-
-FORM4
-#springFormMultiSelect("command.spouses" ... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/test.vm | @@ -1,64 +0,0 @@
-##
-## test template for Velocity macro test class
-##
-
-NAME
-$command.name
-
-AGE
-$command.age
-
-MESSAGE
-#springMessage("hello") #springMessage("world")
-
-DEFAULTMESSAGE
-#springMessageText("no.such.code" "hi") #springMessageText("no.such.code" "planet")
-
-THEME
-#springTheme("hello") #springT... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/velocity/toolbox.xml | @@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-
-<toolbox>
- <xhtml>true</xhtml>
- <data type="string">
- <key>foo</key>
- <value>this is foo.</value>
- </data>
- <tool>
- <key>map</key>
- <class>java.util.HashMap</class>
- </tool>
- <tool>
- <key>date</key>
- <scope>application</scope>
- <class>or... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/images/full.svg | @@ -154,7 +154,7 @@
x="11.15" dy="1.2em" class="st8">data to the domain </tspan><tspan x="27.83" dy="1.2em" class="st8">model</tspan></text> </g>
<g id="shape13-48" v:mID="13" v:groupContext="shape" transform="translate(263.76,-211.679)">
<title>Box.13</title>
- <desc>Integration with JSP, Velocity, XS... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/images/overview-full.graffle | @@ -128,7 +128,7 @@
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
-\f0\i\b\fs28 \cf0 Integration with JSP, Velocity, SLT. PDF, Excel}</string>
+\f0\i\b\fs28 \cf0 Integration with JSP, FreeMarker, XSLT, PDF, Excel}</str... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/images/spring-overview.svg | @@ -160,7 +160,7 @@
x="-78.63" dy="1.2em" class="st4">WebWork<v:newlineChar/></tspan><tspan x="-76.14" dy="1.2em"
class="st4">Tapestry<v:newlineChar/></tspan><tspan x="-65.57" dy="1.2em" class="st4">JSF<v:newlineChar/></tspan><tspan
x="-97.82" dy="1.2em" class="st4">Rich View Support<v:newlineCh... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/integration.adoc | @@ -6043,124 +6043,11 @@ of your emails using the above approach for a number of reasons.
recompiling, redeploying...
Typically the approach taken to address these issues is to use a template library such
-as FreeMarker or Velocity to define the display structure of email content. This leaves
-your code tasked on... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/overview.adoc | @@ -145,8 +145,7 @@ The Context module also supports Java EE features such as EJB, JMX, and basic re
The `ApplicationContext` interface is the focal point of the Context module.
`spring-context-support` provides support for integrating common third-party libraries
into a Spring application context for caching (EhCac... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/testing.adoc | @@ -84,12 +84,6 @@ conjunction with your `WebApplicationContext` configuration for Spring MVC, see
<<spring-mvc-test-framework,_Spring MVC Test Framework_>>.
-[[mock-objects-portlet]]
-==== Portlet API
-The `org.springframework.mock.web.portlet` package contains a set of Portlet API mock
-objects, targeted at usag... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/web-mvc.adoc | @@ -49,9 +49,9 @@ configurable through file extension or Accept header content type negotiation, t
bean names, a properties file, or even a custom `ViewResolver` implementation. The model
(the M in MVC) is a `Map` interface, which allows for the complete abstraction of the
view technology. You can integrate directly... | true |
Other | spring-projects | spring-framework | ff6ead1fff5d7e019702d9b956b9336d25b26b90.json | Remove Velocity support
Issue: SPR-13795 | src/asciidoc/web-view.adoc | @@ -36,6 +36,7 @@ text based content.
This requires Groovy 2.3.1+ on the classpath.
+
[[view-groovymarkup-configuration]]
=== Configuration
@@ -76,6 +77,7 @@ The XML counterpart using the MVC namespace is:
<mvc:groovy-configurer resource-loader-path="/WEB-INF/"/>
----
+
[[view-groovymarkup-example]]
===... | true |
Other | spring-projects | spring-framework | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/AbstractSpringPreparerFactory.java | @@ -1,69 +0,0 @@
-/*
- * Copyright 2002-2012 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/SimpleSpringPreparerFactory.java | @@ -1,76 +0,0 @@
-/*
- * Copyright 2002-2012 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/SpringBeanPreparerFactory.java | @@ -1,47 +0,0 @@
-/*
- * Copyright 2002-2009 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/SpringLocaleResolver.java | @@ -1,65 +0,0 @@
-/*
- * Copyright 2002-2009 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/SpringWildcardServletTilesApplicationContext.java | @@ -1,77 +0,0 @@
-/*
- * Copyright 2002-2014 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/TilesConfigurer.java | @@ -1,442 +0,0 @@
-/*
- * Copyright 2002-2014 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/TilesView.java | @@ -1,115 +0,0 @@
-/*
- * Copyright 2002-2014 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/TilesViewResolver.java | @@ -1,86 +0,0 @@
-/*
- * Copyright 2002-2014 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/package-info.java | @@ -1,10 +0,0 @@
-/**
- * Support classes for the integration of
- * <a href="http://tiles.apache.org">Tiles 2</a>
- * (the standalone version of Tiles) as Spring web view technology.
- * Contains a View implementation for Tiles definitions.
- *
- * <p><b>NOTE: Tiles 2 support is deprecated in favor of Tiles 3
- * and ... | true |
Other | spring-projects | spring-framework | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/test/java/org/springframework/web/servlet/view/tiles2/TilesConfigurerTests.java | @@ -1,54 +0,0 @@
-/*
- * Copyright 2002-2014 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 | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/test/resources/log4j.properties | @@ -1,10 +0,0 @@
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n
-
-log4j.rootCategory=WARN, console
-log4j.logger.org.springframework.beans=WARN
-log4j.logger.org.springf... | true |
Other | spring-projects | spring-framework | 4027bda168ecef2f0235686e93d399726ec2aced.json | Remove Tiles 2 support
Issue: SPR-13229 | spring-webmvc-tiles2/src/test/resources/org/springframework/web/servlet/view/tiles2/tiles-definitions.xml | @@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE tiles-definitions PUBLIC
- "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
- "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
-
-<tiles-definitions>
-
- <definition name="test" template="/WEB-INF/tiles/test.jsp"/>
-
-</tiles-def... | true |
Other | spring-projects | spring-framework | 8450c69497dc04e14b5a01484ab087a6c9a1a4c4.json | Add ListBodySpec.size implementation
Added implementation for WebTestClient.ListBodySpec.size(). | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java | @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.springframework.test.web.reactive.server;
import java.net.URI;
@@ -429,6 +430,9 @@ public <T> EntityExchangeResult<List<T>> isEqualTo(List<T> expected) {
@Override
... | false |
Other | spring-projects | spring-framework | 2515134f8ebbb6cc3b12c0055d9687105ea1ee1d.json | Fix direction of arrows in request/response output | spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java | @@ -167,12 +167,12 @@ public <T> T assertWithDiagnosticsAndReturn(Supplier<T> assertion) {
public String toString() {
return "\n" +
"> " + getMethod() + " " + getUrl() + "\n" +
- "> " + formatHeaders(getRequestHeaders()) + "\n" +
+ "> " + formatHeaders("> ", getRequestHeaders()) + "\n" +
"\n" +
... | false |
Other | spring-projects | spring-framework | 71b021c7cca87a6ca1d71532961dd082cf50c66a.json | Add decorators for ClientHttpRequest & Response | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpRequestDecorator.java | @@ -0,0 +1,113 @@
+/*
+ * Copyright 2002-2017 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 | 71b021c7cca87a6ca1d71532961dd082cf50c66a.json | Add decorators for ClientHttpRequest & Response | spring-web/src/main/java/org/springframework/http/client/reactive/ClientHttpResponseDecorator.java | @@ -0,0 +1,79 @@
+/*
+ * Copyright 2002-2017 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 | 71b021c7cca87a6ca1d71532961dd082cf50c66a.json | Add decorators for ClientHttpRequest & Response | spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpResponseDecorator.java | @@ -114,4 +114,10 @@ public Mono<Void> setComplete() {
return getDelegate().setComplete();
}
+
+ @Override
+ public String toString() {
+ return getClass().getSimpleName() + " [delegate=" + getDelegate() + "]";
+ }
+
} | true |
Other | spring-projects | spring-framework | d59dc970a046796a5f9ed734b317dd5082c6410a.json | Expose response cookies from ExchangeResult | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java | @@ -261,7 +261,7 @@ private DefaultResponseSpec toResponseSpec(Mono<ClientResponse> mono) {
}
/**
- * ExchangeResult that contains the live {@link ClientResponse}.
+ * The {@code ExchangeResult} with live, undecoded {@link ClientResponse}.
*/
private class UndecodedExchangeResult extends ExchangeResult {
| true |
Other | spring-projects | spring-framework | d59dc970a046796a5f9ed734b317dd5082c6410a.json | Expose response cookies from ExchangeResult | spring-test/src/main/java/org/springframework/test/web/reactive/server/EntityExchangeResult.java | @@ -16,13 +16,14 @@
package org.springframework.test.web.reactive.server;
/**
- * {@code ExchangeResult} variant with the response body fully extracted to a
- * representation of type {@code <T>}.
+ * {@code ExchangeResult} sub-class that exposes the response body fully
+ * extracted to a representation of type {@c... | true |
Other | spring-projects | spring-framework | d59dc970a046796a5f9ed734b317dd5082c6410a.json | Expose response cookies from ExchangeResult | spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java | @@ -22,22 +22,27 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseCookie;
import org.springframework.http.client.reactive.ClientHttpRequest;
+import org.springframework.util.MultiValueMap;... | true |
Other | spring-projects | spring-framework | d59dc970a046796a5f9ed734b317dd5082c6410a.json | Expose response cookies from ExchangeResult | spring-test/src/main/java/org/springframework/test/web/reactive/server/FluxExchangeResult.java | @@ -26,6 +26,7 @@
*
* @author Rossen Stoyanchev
* @since 5.0
+ * @see EntityExchangeResult
*/
public class FluxExchangeResult<T> extends ExchangeResult {
| true |
Other | spring-projects | spring-framework | 2fe5064dbed7b11828978f3de66af1b1c5b985fa.json | Remove unneeded exclude from Gradle build | build.gradle | @@ -874,16 +874,9 @@ project("spring-webflux") {
testRuntime("org.webjars:underscorejs:1.8.3")
testRuntime("org.jruby:jruby:9.1.7.0")
testRuntime("org.python:jython-standalone:2.5.3")
- // Ideally, kotlin-script-runtime should be enough for JSR-223, but that's not
- // the case yet, so we depend on kotlin-sc... | false |
Other | spring-projects | spring-framework | 4221a344dc799314b2a4711838e6f1a152811ec1.json | Treat empty Accept header as "*/*"
This commit changes the `accept` RequestPredicate so that it treats an
empty `Accept` header as having the value `*/*`, as per the HTTP spec. | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java | @@ -18,6 +18,7 @@
import java.net.URI;
import java.util.Arrays;
+import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -35,7 +36,6 @@
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.sprin... | true |
Other | spring-projects | spring-framework | 4221a344dc799314b2a4711838e6f1a152811ec1.json | Treat empty Accept header as "*/*"
This commit changes the `accept` RequestPredicate so that it treats an
empty `Accept` header as having the value `*/*`, as per the HTTP spec. | spring-webflux/src/test/java/org/springframework/web/reactive/function/server/RequestPredicatesTests.java | @@ -140,7 +140,7 @@ public void accept() throws Exception {
MockServerRequest request = MockServerRequest.builder().header("Accept", json.toString()).build();
assertTrue(predicate.test(request));
- request = MockServerRequest.builder().build();
+ request = MockServerRequest.builder().header("Accept", MediaTyp... | true |
Other | spring-projects | spring-framework | b732251b093552812d7457608d422e899241ca04.json | Ignore HEAD requests in ShallowEtagHeaderFilter
Prior to this commit, the `ShallowEtagHeaderFilter` could participate in
the response and set its ETag/Content-Length headers, even for HEAD
requests. Since the response body is empty, the filter implementation
would set a `"Content-Length: 0"`.
The RFC states that resp... | spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -19,6 +19,7 @@
import java.io.IOException;
... | true |
Other | spring-projects | spring-framework | b732251b093552812d7457608d422e899241ca04.json | Ignore HEAD requests in ShallowEtagHeaderFilter
Prior to this commit, the `ShallowEtagHeaderFilter` could participate in
the response and set its ETag/Content-Length headers, even for HEAD
requests. Since the response body is empty, the filter implementation
would set a `"Content-Length: 0"`.
The RFC states that resp... | spring-web/src/test/java/org/springframework/web/filter/ShallowEtagHeaderFilterTests.java | @@ -46,6 +46,9 @@ public void isEligibleForEtag() {
assertTrue(filter.isEligibleForEtag(request, response, 200, StreamUtils.emptyInput()));
assertFalse(filter.isEligibleForEtag(request, response, 300, StreamUtils.emptyInput()));
+ request = new MockHttpServletRequest("HEAD", "/hotels");
+ assertFalse(filter.i... | true |
Other | spring-projects | spring-framework | 598d9a4b052922e6dec1a9b28b859fe2066912bb.json | Add test to reproduce SPR-15271 | spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -204,6 +204,15 @@ public void getAllAnnotati... | false |
Other | spring-projects | spring-framework | 4d48fde7959b7a2635e3968888619b8c1932989c.json | Fix RequestPredicate.route() implementation
Issue: SPR-14954 | spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionExtensions.kt | @@ -60,7 +60,6 @@ fun RouterFunction<*>.route(request: ServerRequest, configure: Routes.() -> Unit
class Routes {
- val children = mutableListOf<Routes>()
val routes = mutableListOf<RouterFunction<ServerResponse>>()
infix fun RequestPredicate.and(other: RequestPredicate): RequestPredicate = this.and(other)
@... | false |
Other | spring-projects | spring-framework | 03f34e24ca588e6f1bdf20287d43c958b952b724.json | Add nested route support to Kotlin DSL
Issue: SPR-14954 | spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionExtensions.kt | @@ -69,6 +69,9 @@ class RouterDsl {
operator fun RequestPredicate.not(): RequestPredicate = this.negate()
+ fun RequestPredicate.route(routes: RouterDsl.() -> Unit) =
+ RouterFunctions.nest(this, RouterDsl().apply(routes).router())
+
operator fun RequestPredicate.invoke(f: (ServerRequest) -> Mono<ServerRespon... | true |
Other | spring-projects | spring-framework | 03f34e24ca588e6f1bdf20287d43c958b952b724.json | Add nested route support to Kotlin DSL
Issue: SPR-14954 | spring-webflux/src/test/kotlin/org/springframework/web/reactive/function/server/RouterFunctionExtensionsTests.kt | @@ -112,15 +112,15 @@ class RouterFunctionExtensionsTests {
override fun route(req: ServerRequest) = route(req) {
(GET("/foo/") or GET("/foos/")) { handle(req) }
- accept(APPLICATION_JSON).apply {
- POST("/api/foo/") { handleFromClass(req) }
- PUT("/api/foo/") { handleFromClass(req) }
- DELETE("/ap... | true |
Other | spring-projects | spring-framework | 9543384d9e3b7c51aa997a47b3758a0284ff72d4.json | Avoid deprecated comparators in tests
Issue: SPR-14779 | spring-beans/src/test/java/org/springframework/beans/support/PropertyComparatorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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,16 +16,14 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 9543384d9e3b7c51aa997a47b3758a0284ff72d4.json | Avoid deprecated comparators in tests
Issue: SPR-14779 | spring-core/src/test/java/org/springframework/util/comparator/CompoundComparatorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -23,12 +23,13 @@
import org.junit.rules.Exp... | true |
Other | spring-projects | spring-framework | 9543384d9e3b7c51aa997a47b3758a0284ff72d4.json | Avoid deprecated comparators in tests
Issue: SPR-14779 | spring-core/src/test/java/org/springframework/util/comparator/InvertibleComparatorTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 the original author or authors.
+ * Copyright 2002-2017 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.
@@ -30,10 +30,11 @@
* @author Chris Beams
*... | true |
Other | spring-projects | spring-framework | e95391765ce7632bcef77b957855f2e100c5fee0.json | Fix typo in Javadoc | spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java | @@ -1440,7 +1440,7 @@ public String getNamespaceURI(Node node) {
}
/**
- * Ges the local name for the supplied {@link Node}.
+ * Get the local name for the supplied {@link Node}.
* <p>The default implementation calls {@link Node#getLocalName}.
* Subclasses may override the default implementation to provid... | false |
Other | spring-projects | spring-framework | 1d589eb6396531674d36cc80a62c912b5e004cb3.json | Add pathPrefix predicate
Added the `pathPrefix` predicate that tests the start of the request
path against a given pattern.
Issue: SPR-14954 | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java | @@ -70,7 +70,7 @@ public static RequestPredicate method(HttpMethod httpMethod) {
}
/**
- * Return a {@code RequestPredicate} that tests against the given path pattern.
+ * Return a {@code RequestPredicate} that tests the request path against the given path pattern.
*
* @param pattern the pattern to match ... | true |
Other | spring-projects | spring-framework | 1d589eb6396531674d36cc80a62c912b5e004cb3.json | Add pathPrefix predicate
Added the `pathPrefix` predicate that tests the start of the request
path against a given pattern.
Issue: SPR-14954 | spring-webflux/src/test/java/org/springframework/web/reactive/function/server/RequestPredicatesTests.java | @@ -162,7 +162,23 @@ public void pathExtension() throws Exception {
uri = URI.create("http://localhost/file.foo");
request = MockServerRequest.builder().uri(uri).build();
assertFalse(predicate.test(request));
+ }
+
+ @Test
+ public void pathPrefix() throws Exception {
+ RequestPredicate predicate = RequestPre... | true |
Other | spring-projects | spring-framework | 285ba7d391a06ee058fafdc42746de2fc6990ef8.json | Update WebTestClient builder | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java | @@ -102,7 +102,7 @@ public DefaultControllerSpec viewResolvers(Consumer<ViewResolverRegistry> consum
}
@Override
- public WebTestClient.WebClientSpec webClientSpec() {
+ public WebTestClient.Builder configureClient() {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
th... | true |
Other | spring-projects | spring-framework | 285ba7d391a06ee058fafdc42746de2fc6990ef8.json | Update WebTestClient builder | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebClientSpec.java | @@ -1,99 +0,0 @@
-/*
- * Copyright 2002-2017 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 | 285ba7d391a06ee058fafdc42746de2fc6990ef8.json | Update WebTestClient builder | spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClientBuilder.java | @@ -18,7 +18,11 @@
import java.time.Duration;
import org.springframework.http.client.reactive.ClientHttpConnector;
+import org.springframework.http.client.reactive.ReactorClientHttpConnector;
+import org.springframework.http.server.reactive.HttpHandler;
+import org.springframework.web.reactive.function.client.Excha... | true |
Other | spring-projects | spring-framework | 285ba7d391a06ee058fafdc42746de2fc6990ef8.json | Update WebTestClient builder | spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java | @@ -136,7 +136,7 @@ public interface WebTestClient {
* {@link org.springframework.web.reactive.config.EnableWebFlux @EnableWebFlux}
* but can also be further customized through the returned spec.
* @param controllers the controllers to test
- * @return spec for controller configuration and test client builder... | true |
Other | spring-projects | spring-framework | 285ba7d391a06ee058fafdc42746de2fc6990ef8.json | Update WebTestClient builder | spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/HeaderTests.java | @@ -40,7 +40,7 @@ public class HeaderTests {
public void setUp() throws Exception {
this.client = WebTestClient
.bindToController(new TestController())
- .webClientSpec().baseUrl("/header")
+ .configureClient().baseUrl("/header")
.build();
}
| true |
Other | spring-projects | spring-framework | fcaf42507a2e8750a5e7318ba6c9a0ec68f872bb.json | Synchronise PathPatternParser access
This commit adds a synchronized block around the PathPatternParser,
since it is not thread-safe. | spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java | @@ -77,7 +77,7 @@ public static RequestPredicate method(HttpMethod httpMethod) {
*/
public static RequestPredicate path(String pattern) {
Assert.notNull(pattern, "'pattern' must not be null");
- return new PathPatternPredicate(DEFAULT_PATTERN_PARSER.parse(pattern));
+ return pathPredicates(DEFAULT_PATTERN_PAR... | false |
Other | spring-projects | spring-framework | d4dd8baed569f0ce1236aafffd578b0aa69a51f3.json | Update copyright header
Closes gh-1327 | spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2017 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. | false |
Other | spring-projects | spring-framework | e2e5e7653cd6e8a4cb1d69a88e571b7f267c644c.json | Add mention of WebFlux testing support | src/asciidoc/web-flux.adoc | @@ -258,7 +258,20 @@ WebSocketClient client = new ReactorNettyWebSocketClient();
client.execute("ws://localhost:8080/echo"), session -> {... }).blockMillis(5000);
----
+[[web-reactive-tests]]
+=== Testing
+The `spring-test` module includes a `WebTestClient` that can be used to test
+WebFlux server endpoints with ... | false |
Other | spring-projects | spring-framework | bd69390c0f3b601c1e11a63c4bfca9da613587f5.json | Fix failing test | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java | @@ -138,7 +138,14 @@
import org.springframework.web.servlet.support.RequestContextUtils;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertArrayEquals;
+import static org.junit.Assert.assertEquals;
+import static org.ju... | false |
Other | spring-projects | spring-framework | cabb25326921ecb958dae9e578abddfa6551f2f7.json | Replace "mvc" in web rective config bean names | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java | @@ -120,7 +120,7 @@ protected ApplicationContext getApplicationContext() {
public RequestMappingHandlerMapping requestMappingHandlerMapping() {
RequestMappingHandlerMapping mapping = createRequestMappingHandlerMapping();
mapping.setOrder(0);
- mapping.setContentTypeResolver(mvcContentTypeResolver());
+ mappin... | true |
Other | spring-projects | spring-framework | cabb25326921ecb958dae9e578abddfa6551f2f7.json | Replace "mvc" in web rective config bean names | spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java | @@ -113,7 +113,7 @@ public void requestMappingHandlerMapping() throws Exception {
assertTrue(mapping.useTrailingSlashMatch());
assertTrue(mapping.useRegisteredSuffixPatternMatch());
- name = "mvcContentTypeResolver";
+ name = "webReactiveContentTypeResolver";
RequestedContentTypeResolver resolver = context... | true |
Other | spring-projects | spring-framework | 580b8b92f8efc95ef44bbe914cc2867838b46428.json | Fix punctuation in Javadoc | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java | @@ -56,7 +56,7 @@
*
* <p>This base class provides an {@code @ExceptionHandler} method for handling
* internal Spring MVC exceptions. This method returns a {@code ResponseEntity}
- * for writing to the response with a {@link HttpMessageConverter message converter}.
+ * for writing to the response with a {@link Htt... | false |
Other | spring-projects | spring-framework | 1f6f0dc101fb425bd63786ef669b0626a6591543.json | Add getHandler in reactive AbstractHandlerMapping | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java | @@ -469,7 +469,7 @@ protected void configureViewResolvers(ViewResolverRegistry registry) {
private static final class EmptyHandlerMapping extends AbstractHandlerMapping {
@Override
- public Mono<Object> getHandler(ServerWebExchange exchange) {
+ public Mono<Object> getHandlerInternal(ServerWebExchange exchange... | true |
Other | spring-projects | spring-framework | 1f6f0dc101fb425bd63786ef669b0626a6591543.json | Add getHandler in reactive AbstractHandlerMapping | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/AbstractHandlerMapping.java | @@ -150,20 +150,38 @@ public CorsProcessor getCorsProcessor() {
}
- protected Object processCorsRequest(ServerWebExchange exchange, Object handler) {
- if (CorsUtils.isCorsRequest(exchange.getRequest())) {
- CorsConfiguration configA = this.globalCorsConfigSource.getCorsConfiguration(exchange);
- CorsConfigu... | true |
Other | spring-projects | spring-framework | 1f6f0dc101fb425bd63786ef669b0626a6591543.json | Add getHandler in reactive AbstractHandlerMapping | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/AbstractUrlHandlerMapping.java | @@ -96,12 +96,11 @@ public final Map<String, Object> getHandlerMap() {
@Override
- public Mono<Object> getHandler(ServerWebExchange exchange) {
+ public Mono<Object> getHandlerInternal(ServerWebExchange exchange) {
String lookupPath = getPathHelper().getLookupPathForRequest(exchange);
Object handler;
try... | true |
Other | spring-projects | spring-framework | 1f6f0dc101fb425bd63786ef669b0626a6591543.json | Add getHandler in reactive AbstractHandlerMapping | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/AbstractHandlerMethodMapping.java | @@ -254,7 +254,7 @@ protected void handlerMethodsInitialized(Map<T, HandlerMethod> handlerMethods) {
* @param exchange the current exchange
*/
@Override
- public Mono<Object> getHandler(ServerWebExchange exchange) {
+ public Mono<HandlerMethod> getHandlerInternal(ServerWebExchange exchange) {
String lookupPa... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java | @@ -0,0 +1,101 @@
+/*
+ * Copyright 2002-2016 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 | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/CorsRegistry.java | @@ -0,0 +1,61 @@
+/*
+ * Copyright 2002-2016 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 | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java | @@ -54,6 +54,7 @@
import org.springframework.util.ClassUtils;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
+import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.reactive.HandlerMapping;
import org.springframework.web.reactive.accept... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/AbstractHandlerMapping.java | @@ -15,12 +15,24 @@
*/
package org.springframework.web.reactive.handler;
+import java.util.Map;
+
+import reactor.core.publisher.Mono;
+
import org.springframework.context.support.ApplicationObjectSupport;
import org.springframework.core.Ordered;
import org.springframework.util.AntPathMatcher;
import org.sprin... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/handler/AbstractUrlHandlerMapping.java | @@ -101,6 +101,7 @@ public Mono<Object> getHandler(ServerWebExchange exchange) {
Object handler = null;
try {
handler = lookupHandler(lookupPath, exchange);
+ handler = processCorsRequest(exchange, handler);
}
catch (Exception ex) {
return Mono.error(ex); | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ConsumesRequestCondition.java | @@ -27,6 +27,7 @@
import org.springframework.http.InvalidMediaTypeException;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.cors.reactive.CorsUtils;
import org.springframework.web.server.ServerWebExchange;
import org.springf... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/HeadersRequestCondition.java | @@ -22,6 +22,7 @@
import java.util.Set;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.cors.reactive.CorsUtils;
import org.springframework.web.server.ServerWebExchange;
/**
@@ -37,7 +38,7 @@
*/
public final class HeadersRequestCondition extends AbstractRequestC... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java | @@ -27,6 +27,7 @@
import org.springframework.http.MediaType;
import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.cors.reactive.CorsUtils;
import org.springframework.web.reactive.accept.RequestedContentTypeRes... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/RequestMethodsRequestCondition.java | @@ -22,11 +22,11 @@
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
-import javax.servlet.http.HttpServletRequest;
-import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
+import org.springframework.http.server.reactive.ServerHttpRequest;
import org.... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/AbstractHandlerMethodMapping.java | @@ -26,17 +26,23 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
+import javax.servlet.http.HttpServletRequest;
+
import reactor.core.publisher.Mono;
import org.springframework.aop.s... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMapping.java | @@ -18,14 +18,20 @@
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
+import java.util.Arrays;
import java.util.Set;
import org.springframework.context.EmbeddedValueResolverAware;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.stereotype... | true |
Other | spring-projects | spring-framework | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/test/java/org/springframework/web/reactive/config/CorsRegistryTests.java | @@ -0,0 +1,71 @@
+/*
+ * 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 | e31a2f778bf401f59cb6ae5124bf2d8b70e8606f.json | Add Reactive CORS support
This is a port of Spring MVC CORS support for Spring Web Reactive:
- CORS classes keep the same name but are in the
web.cors.reactive package
- CorsConfiguration is reused because not tied to Servlet API
- CORS HandlerMapping integration is done at
AbstractHandlerMapping level
- Abs... | spring-web-reactive/src/test/java/org/springframework/web/reactive/handler/CorsAbstractUrlHandlerMappingTests.java | @@ -0,0 +1,182 @@
+/*
+ * Copyright 2002-2016 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.