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

The newest version!
package com.genexus.servlet;

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy