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

cc.protea.platform.providers.SessionTokenProvider Maven / Gradle / Ivy

Go to download

A standard set of utilities that makes it easy to build systems that need users, billing, etc giving the usefulness of a PaaS with the control of a local application

There is a newer version: 0.5.11
Show newest version
package cc.protea.platform.providers;

import javax.inject.Named;

import org.glassfish.jersey.server.internal.inject.AbstractContainerRequestValueFactory;
import org.jvnet.hk2.annotations.Service;

@Service
@Named("sessionToken")
public class SessionTokenProvider extends AbstractContainerRequestValueFactory {

	public Object provide() {
		return this.getContainerRequest().getProperty("sessionToken");
	}
}