diff --git a/core/src/main/java/lucee/runtime/functions/other/IsFlushed.java b/core/src/main/java/lucee/runtime/functions/other/IsFlushed.java new file mode 100644 index 0000000000..de9f5a17fa --- /dev/null +++ b/core/src/main/java/lucee/runtime/functions/other/IsFlushed.java @@ -0,0 +1,33 @@ +/** + * Copyright (c) 2015, Lucee Assosication Switzerland + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +package lucee.runtime.functions.other; + +import lucee.runtime.PageContext; +import lucee.runtime.ext.function.Function; + +/** + * implements built in function isFlushed() which returns true if the response stream is committed + */ +public final class IsFlushed implements Function { + + public static boolean call(PageContext pc) { + + return pc.getHttpServletResponse().isCommitted(); + } + +} diff --git a/core/src/main/java/resource/fld/core-base.fld b/core/src/main/java/resource/fld/core-base.fld index 3a15225807..8d0c231c31 100755 --- a/core/src/main/java/resource/fld/core-base.fld +++ b/core/src/main/java/resource/fld/core-base.fld @@ -7373,6 +7373,15 @@ The following things are considered to be empty: + + IsFlushed + lucee.runtime.functions.other.IsFlushed + returns true if the response stream was already flushed. + + boolean + + + IsIPInRange diff --git a/loader/build.xml b/loader/build.xml index 4c61779ef5..253712d1e2 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 87ce37fb37..c66ed70d92 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.0.1.79-SNAPSHOT + 6.0.1.80-SNAPSHOT jar Lucee Loader Build