|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.message.Message
public class Message
フィールドの概要 | |
---|---|
protected String |
destinationUrl
|
static String |
MODE_CANCEL
|
static String |
MODE_IDRES
|
static String |
MODE_SETUP_NEEDED
|
static String |
OPENID2_NS
|
コンストラクタの概要 | |
---|---|
protected |
Message()
|
protected |
Message(ParameterList params)
|
メソッドの概要 | |
---|---|
void |
addExtension(MessageExtension extension)
Adds a set of extension-specific parameters to a message. |
static void |
addExtensionFactory(Class<? extends MessageExtensionFactory> clazz)
Adds a new extension factory. |
static Message |
createMessage()
|
static Message |
createMessage(ParameterList params)
|
String |
getDestinationUrl(boolean httpGet)
Gets the URL where the message should be sent, where applicable. |
MessageExtension |
getExtension(String typeUri)
Gets a MessageExtension for the specified Type URI if an implementation is available, or null otherwise. |
String |
getExtensionAlias(String extensionTypeUri)
Retrieves the extension alias that will be used for the extension identified by the supplied extension type URI. |
static MessageExtensionFactory |
getExtensionFactory(String typeUri)
Gets a MessageExtensionFactory for the specified Type URI if an implementation is available, or null otherwise. |
Set<String> |
getExtensions()
Gets a set of extension Type URIs that are present in the message. |
protected Parameter |
getParameter(String name)
|
Map<String,String> |
getParameterMap()
|
protected List<Parameter> |
getParameters()
|
String |
getParameterValue(String name)
|
List<String> |
getRequiredFields()
|
boolean |
hasExtension(String typeUri)
Returns true if the message has parameters for the specified extension type URI. |
static boolean |
hasExtensionFactory(String typeUri)
Returns true if there is an extension factory available for extension identified by the specified Type URI, or false otherwise. |
boolean |
hasParameter(String name)
|
boolean |
isValid()
Check that all required parameters are present |
String |
keyValueFormEncoding()
|
protected void |
set(String name,
String value)
|
String |
wwwFormEncoding()
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String MODE_IDRES
public static final String MODE_CANCEL
public static final String MODE_SETUP_NEEDED
public static final String OPENID2_NS
protected String destinationUrl
コンストラクタの詳細 |
---|
protected Message()
protected Message(ParameterList params)
メソッドの詳細 |
---|
public static Message createMessage() throws MessageException
MessageException
public static Message createMessage(ParameterList params) throws MessageException
MessageException
protected Parameter getParameter(String name)
public String getParameterValue(String name)
public boolean hasParameter(String name)
protected void set(String name, String value)
protected List<Parameter> getParameters()
public Map<String,String> getParameterMap()
public boolean isValid()
public List<String> getRequiredFields()
public String keyValueFormEncoding()
public String wwwFormEncoding()
public String getDestinationUrl(boolean httpGet)
httpGet
- If true, the wwwFormEncoding() is appended to the destination
URL; the return value should be used with a GET-redirect. If
false, the verbatim destination URL is returned, which should
be used with a FORM POST redirect.wwwFormEncoding()
public static void addExtensionFactory(Class<? extends MessageExtensionFactory> clazz) throws MessageException
clazz
- The implementation class for the extension factory, must
implement MessageExtensionFactory
.
MessageException
public static boolean hasExtensionFactory(String typeUri)
typeUri
- The Type URI that identifies an extension.public static MessageExtensionFactory getExtensionFactory(String typeUri)
typeUri
- The Type URI that identifies a extension.Message
public boolean hasExtension(String typeUri)
typeUri
- The URI that identifies the extension.public Set<String> getExtensions()
public String getExtensionAlias(String extensionTypeUri)
If the message contains no parameters for the specified extension, null will be returned.
extensionTypeUri
- The URI that identifies the extension
public void addExtension(MessageExtension extension) throws MessageException
The parameter names must NOT contain the "openid.
extension
- A MessageExtension containing parameters to be added to the
message
MessageException
public MessageExtension getExtension(String typeUri) throws MessageException
The returned object will contain the parameters from the message belonging to the specified extension.
typeUri
- The Type URI that identifies a extension.
MessageException
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |