All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.servlet.ServletResponse Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
package com.genexus.servlet;

import com.genexus.servlet.http.HttpServletResponse;
import com.genexus.servlet.http.IHttpServletResponse;

public class ServletResponse implements IServletResponse{
	private jakarta.servlet.ServletResponse resp;

	public ServletResponse(jakarta.servlet.ServletResponse resp) {
		this.resp = resp;
	}

	public jakarta.servlet.ServletResponse getWrappedClass() {
		return resp;
	}

	public boolean isHttpServletResponse()
	{
		return resp instanceof jakarta.servlet.http.HttpServletResponse;
	}

	public IHttpServletResponse getHttpServletResponse()
	{
		if (resp instanceof jakarta.servlet.http.HttpServletResponse) {
			return new HttpServletResponse((jakarta.servlet.http.HttpServletResponse)resp);
		}
		return null;
	}

	public boolean isCommitted() {
		return resp.isCommitted();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy