com.genexus.servlet.RequestDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxwrapperjakarta Show documentation
Show all versions of gxwrapperjakarta Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
package com.genexus.servlet;
import com.genexus.servlet.http.HttpServletRequest;
import com.genexus.servlet.http.HttpServletResponse;
import com.genexus.servlet.http.IHttpServletRequest;
import com.genexus.servlet.http.IHttpServletResponse;
import java.io.IOException;
public class RequestDispatcher implements IRequestDispatcher{
jakarta.servlet.RequestDispatcher req;
public RequestDispatcher(jakarta.servlet.RequestDispatcher req) {
this.req = req;
}
public void forward(IHttpServletRequest req, IHttpServletResponse resp) throws IOException, ServletException{
try {
this.req.forward(((HttpServletRequest)req).getWrappedClass(), ((HttpServletResponse)resp).getWrappedClass());
} catch (jakarta.servlet.ServletException e) {
throw new ServletException(e.getMessage());
}
}
public void forward(IServletRequest req, IServletResponse resp) throws IOException, ServletException{
try {
this.req.forward(((ServletRequest)req).getWrappedClass(), ((ServletResponse)resp).getWrappedClass());
} catch (jakarta.servlet.ServletException e) {
throw new ServletException(e.getMessage());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy