Projects
Mega:24.03
groovy
_service:tar_scm:0001-Port-to-Servlet-API-3.1.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-Port-to-Servlet-API-3.1.patch of Package groovy
From fa96b88004ed4873b9538fa4d6d0203654d1d2a7 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski <mizdebsk@redhat.com> Date: Fri, 31 Oct 2014 12:48:44 +0100 Subject: [PATCH 1/6] Port to Servlet API 3.1 --- .../src/main/java/groovy/servlet/ServletBinding.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java b/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java index ad58122..df25990 100644 --- a/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java +++ b/subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java @@ -152,6 +152,20 @@ public class ServletBinding extends Binding { public void write(byte[] b, int off, int len) throws IOException { getResponseStream().write(b, off, len); } + public boolean isReady() { + try { + return getResponseStream().isReady(); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + public void setWriteListener(javax.servlet.WriteListener writeListener) { + try { + getResponseStream().setWriteListener(writeListener); + } catch (IOException e) { + throw new RuntimeException(e); + } + } }; } private PrintWriter getResponseWriter() { -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2