Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e5531e7

Browse files
committed
Remove dependency on sitemesh
1 parent 8aeac5c commit e5531e7

File tree

4 files changed

+0
-81
lines changed

4 files changed

+0
-81
lines changed

LICENSE

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES
224224
>>> dom4j-1.6.1
225225
>>> hsqldb-1.8.0.10
226226
>>> jline-2.11
227-
>>> sitemesh-2.4
228227
>>> slf4j-1.7.5
229228

230229

@@ -394,57 +393,6 @@ This software is distributable under the BSD license. See the terms of the
394393
BSD license in the documentation provided with this software.
395394

396395

397-
>>> sitemesh-2.4
398-
399-
The OpenSymphony Software License, Version 1.1
400-
401-
(this license is derived and fully compatible with the Apache Software
402-
License - see http://www.apache.org/LICENSE.txt)
403-
404-
Copyright (c) 2001 The OpenSymphony Group. All rights reserved.
405-
406-
Redistribution and use in source and binary forms, with or without
407-
modification, are permitted provided that the following conditions
408-
are met:
409-
410-
1. Redistributions of source code must retain the above copyright
411-
notice, this list of conditions and the following disclaimer.
412-
413-
2. Redistributions in binary form must reproduce the above copyright
414-
notice, this list of conditions and the following disclaimer in
415-
the documentation and/or other materials provided with the
416-
distribution.
417-
418-
3. The end-user documentation included with the redistribution,
419-
if any, must include the following acknowledgment:
420-
"This product includes software developed by the
421-
OpenSymphony Group (http://www.opensymphony.com/)."
422-
Alternately, this acknowledgment may appear in the software itself,
423-
if and wherever such third-party acknowledgments normally appear.
424-
425-
4. The names "OpenSymphony" and "The OpenSymphony Group"
426-
must not be used to endorse or promote products derived from this
427-
software without prior written permission. For written
428-
permission, please contact license@opensymphony.com .
429-
430-
5. Products derived from this software may not be called "OpenSymphony"
431-
or "SiteMesh", nor may "OpenSymphony" or "SiteMesh" appear in their
432-
name, without prior written permission of the OpenSymphony Group.
433-
434-
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
435-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
436-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
437-
DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
438-
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
439-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
440-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
441-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
442-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
443-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
444-
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
445-
SUCH DAMAGE.
446-
447-
448396
>>> slf4j-1.7.5
449397

450398
Copyright (c) 2004-2007 QOS.ch

gradle/libs.versions.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ micronaut-serde-jackson = '2.10.2'
1212
objenesis = '3.3'
1313
rxjava = '1.3.8'
1414
rxjava2 = '2.2.21'
15-
sitemesh = '2.4.4'
1615
slf4j = '1.7.36'
1716
spock = '2.3-groovy-4.0'
1817
spring = '6.1.13'
@@ -27,14 +26,12 @@ grails-datastore-gorm = { module = 'org.grails:grails-datastore-gorm', version.r
2726
grails-datastore-gorm-test = { module = 'org.grails:grails-datastore-gorm-test', version.ref = 'gorm' }
2827
grails-web-common = { module = 'org.grails:grails-web-common', version.ref = 'grails' }
2928
grails-web-mvc = { module = 'org.grails:grails-web-mvc', version.ref = 'grails' }
30-
grails-web-sitemesh = { module = 'org.grails:grails-web-sitemesh', version.ref = 'grails-gsp' }
3129
gpars = { module = 'org.codehaus.gpars:gpars', version.ref = 'gpars' }
3230
groovy-core = { module = 'org.apache.groovy:groovy', version.ref = 'groovy' }
3331
jakarta-annotation-api = { module = 'jakarta.annotation:jakarta.annotation-api', version.ref = 'jakarta-annotation-api' }
3432
objenesis = { module = 'org.objenesis:objenesis', version.ref = 'objenesis' }
3533
rxjava = { module = 'io.reactivex:rxjava', version.ref = 'rxjava' }
3634
rxjava2 = { module = 'io.reactivex.rxjava2:rxjava', version.ref = 'rxjava2' }
37-
sitemesh = { module = 'opensymphony:sitemesh', version.ref = 'sitemesh' }
3835
slf4j-api = { module = 'org.slf4j:slf4j-api', version.ref = 'slf4j' }
3936
slf4j-nop = { module = 'org.slf4j:slf4j-nop', version.ref = 'slf4j' }
4037
servlet-api = { module = 'javax.servlet:javax.servlet-api', version = '4.0.1' }

grails-plugin-async/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ dependencies {
1414
api project(':grails-events-core')
1515
api libs.grails.core
1616
api libs.grails.web.common
17-
api libs.grails.web.sitemesh
1817
api libs.groovy.core
1918
api libs.spring.beans
2019
api libs.spring.context
2120
api libs.spring.tx
2221

2322
implementation libs.grails.controllers
2423
implementation libs.grails.web.mvc
25-
implementation libs.sitemesh
2624
implementation libs.spring.core
2725
implementation libs.spring.web
2826

grails-plugin-async/src/main/groovy/org/grails/plugins/web/async/GrailsAsyncContext.groovy

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ import jakarta.servlet.AsyncListener
2222

2323
import grails.persistence.support.PersistenceContextInterceptor
2424
import org.grails.web.servlet.mvc.GrailsWebRequest
25-
import org.grails.web.sitemesh.GrailsContentBufferingResponse
26-
import org.grails.web.sitemesh.GroovyPageLayoutFinder
2725
import org.grails.web.util.WebUtils
2826

29-
import com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext
30-
3127
import jakarta.servlet.http.HttpServletRequest
3228
import jakarta.servlet.http.HttpServletResponse
3329

@@ -43,16 +39,11 @@ class GrailsAsyncContext implements AsyncContext {
4339

4440
final @Delegate AsyncContext delegate
4541
final GrailsWebRequest originalWebRequest
46-
final GroovyPageLayoutFinder groovyPageLayoutFinder
4742
final AsyncGrailsWebRequest asyncGrailsWebRequest
4843

4944
GrailsAsyncContext(AsyncContext delegate, GrailsWebRequest webRequest, AsyncGrailsWebRequest asyncGrailsWebRequest = null) {
5045
this.delegate = delegate
5146
originalWebRequest = webRequest
52-
def applicationContext = webRequest.getApplicationContext()
53-
if (applicationContext && applicationContext.containsBean("groovyPageLayoutFinder")) {
54-
groovyPageLayoutFinder = applicationContext.getBean("groovyPageLayoutFinder", GroovyPageLayoutFinder)
55-
}
5647
this.asyncGrailsWebRequest = asyncGrailsWebRequest
5748
}
5849

@@ -82,21 +73,6 @@ class GrailsAsyncContext implements AsyncContext {
8273
}
8374

8475
void complete() {
85-
if (response instanceof GrailsContentBufferingResponse) {
86-
GrailsContentBufferingResponse bufferingResponse = (GrailsContentBufferingResponse) response
87-
def targetResponse = bufferingResponse.getTargetResponse()
88-
def content = bufferingResponse.getContent()
89-
final httpRequest = (HttpServletRequest) request
90-
if (content != null && groovyPageLayoutFinder != null) {
91-
com.opensymphony.sitemesh.Decorator decorator = (com.opensymphony.sitemesh.Decorator)groovyPageLayoutFinder?.findLayout(httpRequest, content)
92-
if (decorator) {
93-
decorator.render content,
94-
new SiteMeshWebAppContext(httpRequest, targetResponse, request.servletContext)
95-
} else {
96-
content.writeOriginal(targetResponse.getWriter())
97-
}
98-
}
99-
}
10076
delegate.complete()
10177
}
10278

0 commit comments

Comments
 (0)