|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XRequestAbstractType
Abstract base type from which all XKMS request messages are derived.
[97] The RequestAbstractType abstract type is the type from which all XKMS
request element types are derived. The RequestAbstractType abstract type
inherits the element and attributes of the XMessageAbstractType
abstract
type and in addition contains the following elements and attributes:
<ResponseMechanism
> [Any Number]
Specifies the extended protocol mechanisms that the client supports in
connection with this request.
<RespondWith
> [Any Number]
Specifies the types of data the recipient requests to be sent in the
response.
<PendingNotification>
[Optional]
Specifies a means by which the service may notify the requestor of the
completion of a pending response. If the <PendingNotification>
element is present the value 'Pending' MUST be specified as a
<ResponseMechanism>
value.
OriginalRequestId [Optional]
Specifies the value 'Id' of the first request made in a multi-stage protocol
such as the asynchronous processing mechanism or the two-phase protocol.
ResponseLimit [Optional]
Specifies the maximum number of data items the requestor can accept in the
case that the schema specifies an unbounded number of elements.
Element <PendingNotification>
[107] The <PendingNotification>
element is used to specify a
mechanism by means of which the service can inform a requestor that a pending
request has completed asynchronously.
[108] The <PendingNotification>
element contains the following
attributes:
Mechanism [Required]
A URI that specifies the protocol by which the notification MAY be made.
Identifier [Required]
A URI that specifies the address to which the notification MAY be made.
[109] The following mechanisms are defined:
Protocol Mechanism Identifier Description SMTP urn:ietf:rfc:822 mailto: Notification by email. HTTP urn:ietf:rfc:2616 http:// Notification by HTTP.The content of the email is outside the scope of this text.
Method Summary | |
---|---|
boolean |
acceptPending()
Checks whether the requestor accepts pending requests. |
boolean |
acceptRepresent()
Checks whether the requestor accepts a response that uses the two-phase protocol. |
boolean |
acceptRequestSignatureValue()
Checks whether the requestor accepts a response that carries a RequestSignatureValue element. |
void |
addRespondWith(RespondWith val)
Adds the given RespondWith to the list of
RespondWith s of this request. |
void |
addResponseMechanism(ResponseMechanism responseMechanism)
Adds the given ResponseMechanism to the list of
ResponseMechanism s of this request. |
NCName |
getOriginalRequestId()
Gets value of OriginalRequestId of this request. |
String[] |
getPendingNotification()
Gets the pending notification for this request. |
List<RespondWith> |
getRespondWith()
Gets list of RespondWith s. |
int |
getResponseLimit()
Gets the ResponseLimit of this request. |
List<ResponseMechanism> |
getResponseMechanism()
Gets list of ResponseMechanism s. |
void |
removeRespondWith(RespondWith val)
Removes the given RespondWith from the list of
RespondWith s of this request. |
void |
removeResponseMechanism(ResponseMechanism responseMechanism)
Removes the given ResponseMechanism from the list of
ResponseMechanism s of this request. |
void |
setOriginalRequestId(NCName requestId)
Sets OriginalRequestId of this request to the
given value. |
void |
setPendingNotification(String identifier,
String mechanism)
Sets the pending notification for this request. |
void |
setResponseLimit(int limit)
Sets ResponseLimit of this request. |
Methods inherited from interface XMessageAbstractType |
---|
addDefaults, addOpaqueClientData, clearOpaqueClientData, getId, getMessageName, getNonce, getOpaqueClientData, getRequestSignatureValue, getService, getSignatureCertificate, hasSignature, isValid, setId, setNonce, setService, setSignature, toString |
Method Detail |
---|
void addResponseMechanism(ResponseMechanism responseMechanism)
ResponseMechanism
to the list of
ResponseMechanism
s of this request.
responseMechanism
- ResponseMechanism
to add.void removeResponseMechanism(ResponseMechanism responseMechanism)
ResponseMechanism
from the list of
ResponseMechanism
s of this request.
responseMechanism
- ResponseMechanism
to remove.List<ResponseMechanism> getResponseMechanism()
ResponseMechanism
s.
This method returns a copy of the internal list, modifications will not be represented internally.
Responsemechanism
s.void addRespondWith(RespondWith val)
RespondWith
to the list of
RespondWith
s of this request.
val
- RespondWith
to add.void removeRespondWith(RespondWith val)
RespondWith
from the list of
RespondWith
s of this request.
val
- RespondWith
to remove.List<RespondWith> getRespondWith()
RespondWith
s.
This method returns a copy of the internal list, modifications will not be represented internally.
RespondWith
s.void setPendingNotification(String identifier, String mechanism) throws XKMSException
identifier
- identifier to use for pending notificationmechanism
- mechanism to use for pending notification
XKMSException
- if parameters are not URIsString[] getPendingNotification()
String
s,
the first being the identifier, the second being the mechanismvoid setOriginalRequestId(NCName requestId)
OriginalRequestId
of this request to the
given value.
requestId
- new value for OriginalRequestId
NCName getOriginalRequestId()
OriginalRequestId
of this request.
OriginalRequestId
void setResponseLimit(int limit)
ResponseLimit
of this request.
limit
- new value for ResponseLimit
.int getResponseLimit()
ResponseLimit
of this request.
ResponseLimit
or -1 if the
element is not set.boolean acceptPending()
The <ResponseMechanism>
tag is checked if it
contains the 'Pending' value.
true
if the requestor accepts pending requests,
otherwise false
boolean acceptRepresent()
The <ResponseMechanism>
tag is checked if it
contains a 'Represent' value.
true
if the requestor is prepared to accept a response that
uses the two-phase protocol, otherwise false
boolean acceptRequestSignatureValue()
RequestSignatureValue
element.
true
if the requestor accepts a response that carries a
RequestSignatureValue
element, otherwise false
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |