public class MPConnectionProvider<T extends MyProxyConnectable> extends Object implements javax.inject.Provider<T>
MyProxyServiceFacade
s
and returns an open MyProxyConnectable
. This is designed to look at
a list of facades and hand back the first that succeeds or, if all configured MyProxy servers
fail, this will fail.
Created by Jeff Gaynor
on 3/16/15 at 2:49 PM
Constructor and Description |
---|
MPConnectionProvider(List<MyProxyServiceFacade> facades) |
MPConnectionProvider(MyLoggingFacade logger,
List<MyProxyServiceFacade> facades) |
MPConnectionProvider(MyLoggingFacade logger,
MyProxyServiceFacade facade)
Convenience constructor for a single facade
|
MPConnectionProvider(MyProxyServiceFacade facade) |
Modifier and Type | Method and Description |
---|---|
T |
findConnection(Identifier identifier,
String userName,
String password,
String loa,
long lifetime) |
T |
findConnection(String userName,
String password,
long lifetime)
Convenience method.
|
T |
get() |
protected void |
info(String x) |
protected void |
warn(String x) |
public MPConnectionProvider(MyLoggingFacade logger, List<MyProxyServiceFacade> facades)
public MPConnectionProvider(List<MyProxyServiceFacade> facades)
public MPConnectionProvider(MyLoggingFacade logger, MyProxyServiceFacade facade)
logger
- facade
- public MPConnectionProvider(MyProxyServiceFacade facade)
protected void info(String x)
protected void warn(String x)
public T findConnection(String userName, String password, long lifetime) throws GeneralSecurityException
userName
- password
- lifetime
- GeneralSecurityException
public T get()
get
in interface javax.inject.Provider<T extends MyProxyConnectable>
public T findConnection(Identifier identifier, String userName, String password, String loa, long lifetime) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2019. All Rights Reserved.