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

io.baltoro.remote.api.APIBase Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.remote.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;

import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;

import io.baltoro.exception.ServiceException;

@Path("/")
public class APIBase 
{

	static Log log = LogFactory.getLog(APIBase.class);
	
	void init()
	{
		
	}
	
	
	@Path("/areyouthere")
	@GET
	public String areYoutThere(@Context HttpServletRequest request) 
	throws ServiceException
	{
		HttpSession session = request.getSession(true);
		return session.getId();
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy