public class SyncopeClientFactoryBean extends Object
SyncopeClient
.
Supports Spring-bean configuration and override via subclassing (see protected methods).Modifier and Type | Class and Description |
---|---|
static class |
SyncopeClientFactoryBean.ContentType |
Constructor and Description |
---|
SyncopeClientFactoryBean() |
Modifier and Type | Method and Description |
---|---|
SyncopeClient |
create()
Builds client instance with no authentication, for user self-registration and password reset.
|
SyncopeClient |
create(AuthenticationHandler handler)
Builds client instance with the given authentication handler.
|
SyncopeClient |
create(String jwt)
Builds client instance which will be passing the provided value in the
HttpHeaders.AUTHORIZATION
request header. |
SyncopeClient |
create(String username,
String password)
Builds client instance with the given credentials.
|
protected RestClientExceptionMapper |
defaultExceptionMapper() |
protected org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> |
defaultJAXBProvider() |
protected static com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider |
defaultJsonProvider() |
protected org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean |
defaultRestClientFactoryBean() |
protected com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider |
defaultYamlProvider() |
String |
getAddress() |
SyncopeClientFactoryBean.ContentType |
getContentType() |
String |
getDomain() |
RestClientExceptionMapper |
getExceptionMapper() |
org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> |
getJaxbProvider() |
com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider |
getJsonProvider() |
org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean |
getRestClientFactoryBean() |
org.apache.cxf.configuration.jsse.TLSClientParameters |
getTlsClientParameters() |
com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider |
getYamlProvider() |
boolean |
isUseCompression() |
SyncopeClientFactoryBean |
setAddress(String address) |
SyncopeClientFactoryBean |
setContentType(String contentType) |
SyncopeClientFactoryBean |
setContentType(SyncopeClientFactoryBean.ContentType contentType) |
SyncopeClientFactoryBean |
setDomain(String domain) |
SyncopeClientFactoryBean |
setExceptionMapper(RestClientExceptionMapper exceptionMapper) |
SyncopeClientFactoryBean |
setJaxbProvider(org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> jaxbProvider) |
void |
setJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider jsonProvider) |
SyncopeClientFactoryBean |
setRestClientFactoryBean(org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean restClientFactoryBean) |
SyncopeClientFactoryBean |
setTlsClientParameters(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
Sets the client TLS configuration.
|
SyncopeClientFactoryBean |
setUseCompression(boolean useCompression)
Sets the given service instance for transparent gzip Content-Encoding handling.
|
void |
setYamlProvider(com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider yamlProvider) |
protected static com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider defaultJsonProvider()
protected org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> defaultJAXBProvider()
protected com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider defaultYamlProvider()
protected RestClientExceptionMapper defaultExceptionMapper()
protected org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean defaultRestClientFactoryBean()
public com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider getJsonProvider()
public void setJsonProvider(com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider jsonProvider)
public org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> getJaxbProvider()
public SyncopeClientFactoryBean setJaxbProvider(org.apache.cxf.jaxrs.provider.JAXBElementProvider<?> jaxbProvider)
public com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider getYamlProvider()
public void setYamlProvider(com.fasterxml.jackson.jaxrs.yaml.JacksonJaxbYAMLProvider yamlProvider)
public RestClientExceptionMapper getExceptionMapper()
public SyncopeClientFactoryBean setExceptionMapper(RestClientExceptionMapper exceptionMapper)
public String getAddress()
public SyncopeClientFactoryBean setAddress(String address)
public SyncopeClientFactoryBean.ContentType getContentType()
public SyncopeClientFactoryBean setContentType(SyncopeClientFactoryBean.ContentType contentType)
public SyncopeClientFactoryBean setContentType(String contentType)
public String getDomain()
public SyncopeClientFactoryBean setDomain(String domain)
public SyncopeClientFactoryBean setUseCompression(boolean useCompression)
useCompression
- whether transparent gzip Content-Encoding handling is to be enabledpublic boolean isUseCompression()
public SyncopeClientFactoryBean setTlsClientParameters(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
tlsClientParameters
- client TLS configurationpublic org.apache.cxf.configuration.jsse.TLSClientParameters getTlsClientParameters()
public org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean getRestClientFactoryBean()
public SyncopeClientFactoryBean setRestClientFactoryBean(org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean restClientFactoryBean)
public SyncopeClient create()
public SyncopeClient create(String username, String password)
HttpHeaders.AUTHORIZATION
header;username
- usernamepassword
- passwordpublic SyncopeClient create(String jwt)
HttpHeaders.AUTHORIZATION
request header.jwt
- value received after login, in the RESTHeaders.TOKEN
response headerHttpHeaders.AUTHORIZATION
request headerpublic SyncopeClient create(AuthenticationHandler handler)
handler
- authentication handlerCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.