本文整理了Java中org.openid4java.message.Message.hasExtensionFactory()
方法的一些代码示例,展示了Message.hasExtensionFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.hasExtensionFactory()
方法的具体详情如下:
包路径:org.openid4java.message.Message
类名称:Message
方法名:hasExtensionFactory
[英]Returns true if there is an extension factory available for extension identified by the specified Type URI, or false otherwise.
[中]如果存在可用于由指定类型URI标识的扩展的扩展工厂,则返回true,否则返回false。
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
/**
* Gets a MessageExtensionFactory for the specified Type URI
* if an implementation is available, or null otherwise.
*
* @param typeUri The Type URI that identifies a extension.
* @see MessageExtensionFactory Message
*/
public static MessageExtensionFactory getExtensionFactory(String typeUri) {
if (!hasExtensionFactory(typeUri)) {
return null;
}
MessageExtensionFactory extensionFactory;
try {
Class extensionClass = (Class) _extensionFactories.get(typeUri);
extensionFactory = (MessageExtensionFactory) extensionClass.newInstance();
} catch (Exception e) {
_log.error("Error getting extension factory for " + typeUri);
return null;
}
return extensionFactory;
}
代码示例来源:origin: org.openid4java/openid4java
/**
* Gets a MessageExtensionFactory for the specified Type URI
* if an implementation is available, or null otherwise.
*
* @param typeUri The Type URI that identifies a extension.
* @see MessageExtensionFactory Message
*/
public static MessageExtensionFactory getExtensionFactory(String typeUri)
{
if (! hasExtensionFactory(typeUri))
return null;
MessageExtensionFactory extensionFactory;
try
{
Class extensionClass = (Class) _extensionFactories.get(typeUri);
extensionFactory = (MessageExtensionFactory) extensionClass.newInstance();
}
catch (Exception e)
{
_log.error("Error getting extension factory for " + typeUri);
return null;
}
return extensionFactory;
}
代码示例来源:origin: jbufu/openid4java
/**
* Gets a MessageExtensionFactory for the specified Type URI
* if an implementation is available, or null otherwise.
*
* @param typeUri The Type URI that identifies a extension.
* @see MessageExtensionFactory Message
*/
public static MessageExtensionFactory getExtensionFactory(String typeUri)
{
if (! hasExtensionFactory(typeUri))
return null;
MessageExtensionFactory extensionFactory;
try
{
Class extensionClass = (Class) _extensionFactories.get(typeUri);
extensionFactory = (MessageExtensionFactory) extensionClass.newInstance();
}
catch (Exception e)
{
_log.error("Error getting extension factory for " + typeUri);
return null;
}
return extensionFactory;
}
代码示例来源:origin: org.openid4java/openid4java-nodeps
/**
* Gets a MessageExtensionFactory for the specified Type URI
* if an implementation is available, or null otherwise.
*
* @param typeUri The Type URI that identifies a extension.
* @see MessageExtensionFactory Message
*/
public static MessageExtensionFactory getExtensionFactory(String typeUri)
{
if (! hasExtensionFactory(typeUri))
return null;
MessageExtensionFactory extensionFactory;
try
{
Class extensionClass = (Class) _extensionFactories.get(typeUri);
extensionFactory = (MessageExtensionFactory) extensionClass.newInstance();
}
catch (Exception e)
{
_log.error("Error getting extension factory for " + typeUri);
return null;
}
return extensionFactory;
}
代码示例来源:origin: com.cloudbees/openid4java-shaded
/**
* Gets a MessageExtensionFactory for the specified Type URI
* if an implementation is available, or null otherwise.
*
* @param typeUri The Type URI that identifies a extension.
* @see MessageExtensionFactory Message
*/
public static MessageExtensionFactory getExtensionFactory(String typeUri)
{
if (! hasExtensionFactory(typeUri))
return null;
MessageExtensionFactory extensionFactory;
try
{
Class extensionClass = (Class) _extensionFactories.get(typeUri);
extensionFactory = (MessageExtensionFactory) extensionClass.newInstance();
}
catch (Exception e)
{
_log.error("Error getting extension factory for " + typeUri);
return null;
}
return extensionFactory;
}
代码示例来源:origin: org.wso2.org.openid4java/openid4java-nodeps
if (hasExtensionFactory(typeUri)) {
MessageExtensionFactory extensionFactory = getExtensionFactory(typeUri);
代码示例来源:origin: org.openid4java/openid4java-nodeps
if (hasExtensionFactory(typeUri))
代码示例来源:origin: org.openid4java/openid4java
if (hasExtensionFactory(typeUri))
代码示例来源:origin: com.cloudbees/openid4java-shaded
if (hasExtensionFactory(typeUri))
代码示例来源:origin: jbufu/openid4java
if (hasExtensionFactory(typeUri))
内容来源于网络,如有侵权,请联系作者删除!