/******************************************************************************* * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *******************************************************************************/ package org.ebayopensource.turmeric.policy.adminui.client.session; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; public class SessionService implements SessionInterfaceAsync { SessionInterfaceAsync service = (SessionInterfaceAsync) GWT.create(SessionInterface.class); ServiceDefTarget endpoint = (ServiceDefTarget) service; public SessionService() { endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "sessionService"); } @Override public void getUserSessionTimeout(AsyncCallback<Integer> callback) { service.getUserSessionTimeout(callback); } @Override public void isSessionAlive(AsyncCallback<Boolean> callback) { service.isSessionAlive(callback); } @Override public void ping(AsyncCallback callback) { service.ping(callback); } }