public interface ServletVariantClient
extends com.variant.client.VariantClient
Servlet Adapter for the "bare" Variant Java Client, providing greatly simplified integration for host applications written on top of the Java Servlet API.
A wrapper API around the "bare" Java Client. Replaces the environment-dependent method signatures
with their environment-aware counterparts, e.g.
com.variant.client.servlet.ServletConnection#getSession(javax.servlet.http.HttpServletRequest)
in place of the bare Connection.getSession(Object...)
.
*
VariantClient
Modifier and Type | Interface and Description |
---|---|
static class |
ServletVariantClient.Builder
Override the bare
VariantClient.Builder to fix the return types. |
Modifier and Type | Method and Description |
---|---|
ServletConnection |
connectTo(java.lang.String uri)
Connect to a variation schema on a Variant server by its URI.
|
ServletConnection connectTo(java.lang.String uri)
connectTo
in interface com.variant.client.VariantClient
uri
- The Variant URI to the schema.Connection
type.com.variant.client.UnknownSchemaException
- if given schema does not exist on the server.Release 0.10.1. Updated 04 Sep 2019.
Copyright © 2019 Variant Inc.