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

com.genexus.GXRestServiceWrapper 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;

import com.genexus.servlet.ServletContext;
import com.genexus.servlet.http.HttpServletRequest;
import com.genexus.servlet.http.HttpServletResponse;
import com.genexus.ws.rs.core.UriInfo;
import com.genexus.servlet.IServletContext;
import com.genexus.servlet.http.IHttpServletRequest;
import com.genexus.servlet.http.IHttpServletResponse;
import com.genexus.ws.rs.core.IUriInfo;

import javax.ws.rs.core.Context;

public class GXRestServiceWrapper {

	@Context
	private javax.ws.rs.core.UriInfo uriInfo;
	@Context
	private javax.servlet.ServletContext myContext;
	@Context
	private javax.servlet.http.HttpServletRequest myServletRequest;
	@Context
	private javax.servlet.http.HttpServletResponse myServletResponse;

	protected IHttpServletRequest myServletRequestWrapper;
	protected IHttpServletResponse myServletResponseWrapper;
	protected IServletContext myContextWrapper;
	protected IUriInfo myUriInfoWrapper;

	protected void initWrappedVars() {
		myServletRequestWrapper = new HttpServletRequest(myServletRequest);
		myServletResponseWrapper = new HttpServletResponse(myServletResponse);
		myContextWrapper = new ServletContext(myContext);
		myUriInfoWrapper = new UriInfo(uriInfo);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy