io.baltoro.remote.api.APIBase Maven / Gradle / Ivy
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