public final class EnvironmentUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONNECT_OPTIONS |
static String |
EJB_CALLBACK_HANDLER_CLASS_KEY |
static String |
EJB_HOST_KEY |
static String |
EJB_PASSWORD_BASE64_KEY |
static String |
EJB_PASSWORD_KEY |
static String |
EJB_PORT_KEY |
static String |
EJB_REMOTE_CONNECTION_PREFIX |
static String |
EJB_REMOTE_CONNECTION_PROVIDER_PREFIX |
static String |
EJB_REMOTE_CONNECTIONS |
static String |
EJB_USERNAME_KEY |
Modifier and Type | Method and Description |
---|---|
static String |
compileURLPackagePrefixes(Collection<String> prefixes)
Compile the given collection of URL package prefixes into a string.
|
static IdentityCredentials |
getSecurityCredentials(Map<String,?> env)
Get the security credential, if any.
|
static IdentityCredentials |
getSecurityCredentials(Map<String,?> env,
String propertyName)
Get the security credential, if any.
|
static String |
getSecurityRealmName(Map<String,?> env)
Get the name of the security realm, if any.
|
static List<String> |
getURLPackagePrefixes(Map<String,?> env)
Get the URL package prefixes defined in the given property name.
|
static List<String> |
getURLPackagePrefixes(Map<String,?> env,
String propertyName)
Get the URL package prefixes defined in the given property name.
|
public static final String EJB_REMOTE_CONNECTIONS
public static final String EJB_REMOTE_CONNECTION_PREFIX
public static final String EJB_REMOTE_CONNECTION_PROVIDER_PREFIX
public static final String CONNECT_OPTIONS
public static final String EJB_HOST_KEY
public static final String EJB_PORT_KEY
public static final String EJB_CALLBACK_HANDLER_CLASS_KEY
public static final String EJB_USERNAME_KEY
public static final String EJB_PASSWORD_KEY
public static final String EJB_PASSWORD_BASE64_KEY
public static IdentityCredentials getSecurityCredentials(Map<String,?> env)
env
- the environment (must not be null
)null
if none was presentpublic static IdentityCredentials getSecurityCredentials(Map<String,?> env, String propertyName)
env
- the environment (must not be null
)propertyName
- the property name (must not be null
)null
if none was presentpublic static String getSecurityRealmName(Map<String,?> env)
null
if there is none or it is in an unrecognized formatpublic static List<String> getURLPackagePrefixes(Map<String,?> env)
env
- the environment (must not be null
)public static List<String> getURLPackagePrefixes(Map<String,?> env, String propertyName)
env
- the environment (must not be null
)propertyName
- the property name to search (must not be null
)public static String compileURLPackagePrefixes(Collection<String> prefixes)
prefixes
- the package prefixes (must not be null
)null
if there are no package prefixes (i.e. the corresponding property can be removed)Copyright © 2017 JBoss by Red Hat. All rights reserved.