Interface Request
Request objects are created using Service.createRequest(String)
or Service.createAuthorizationRequest()
. They are used with Session.sendRequest(Request, UserHandle, EventQueue, CorrelationID, String)
or AbstractSession.sendAuthorizationRequest(Request, UserHandle, EventQueue, CorrelationID, String)
. The
Request object contains the parameters for a single request to a single service. Once a Request
has been created its fields can be populated directly using the convenience functions set() and
append() or using the Element interface on the Element returned by asElement()
.
The schema for the Request can be queried using the Element
interface on the Element
returned by asElement()
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Append the specified value to the named array element of this requestvoid
Deprecated.Arrays of byte arrays are not supported.void
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Append the specified value to the named array element of this requestvoid
Deprecated.Useappend(Name, boolean)
instead.void
Deprecated.Arrays of byte arrays are not supported.void
Deprecated.Useappend(Name, char)
instead.void
Deprecated.Useappend(Name, double)
instead.void
Deprecated.Useappend(Name, float)
instead.void
Deprecated.Useappend(Name, int)
instead.void
Deprecated.Useappend(Name, long)
instead.void
Deprecated.Useappend(Name, Constant)
instead.void
Deprecated.Useappend(Name, Datetime)
instead.void
Deprecated.Useappend(Name, Name)
instead.void
Deprecated.Useappend(Name, String)
instead.Return the contents of this Request as an element.getElement
(Name name) Return the modifiable element of this request having the specified name creating it if doesn't exist already.getElement
(String name) Deprecated.UsegetElement(Name)
instead.Returns request id if one exists, otherwise,null
.boolean
hasElement
(Name name) Return true if this request contains the element having the specified name false otherwiseboolean
hasElement
(String name) Deprecated.UsehasElement(Name)
instead.Return the Operation this Request is intended to invoke on the associated Service.void
print
(OutputStream output) Prints the contents of this message to the specified OutputStream.void
Prints the contents of this message to the specified Writer.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Set the element of this request having the specified name to the specified value.void
Deprecated.Useset(Name, boolean)
instead.void
Deprecated.Useset(Name, char)
instead.void
Deprecated.Useset(Name, double)
instead.void
Deprecated.Useset(Name, float)
instead.void
Deprecated.Useset(Name, int)
instead.void
Deprecated.Useset(Name, long)
instead.void
Deprecated.Useset(Name, Constant)
instead.void
Deprecated.Useset(Name, Datetime)
instead.void
Deprecated.Useset(Name, Name)
instead.void
Deprecated.Useset(Name, String)
instead.
-
Method Details
-
operation
Operation operation()Return the Operation this Request is intended to invoke on the associated Service. -
asElement
Element asElement()Return the contents of this Request as an element. -
hasElement
Return true if this request contains the element having the specified name false otherwisesame as calling
asElement()
.hasElement(Name)
-
hasElement
Deprecated.UsehasElement(Name)
instead.Return true if this request contains the element having the specified name false otherwisesame as calling
asElement()
.hasElement(String)
-
getElement
Return the modifiable element of this request having the specified name creating it if doesn't exist already.same as calling
asElement()
.getElement(Name)
-
getElement
Deprecated.UsegetElement(Name)
instead.Return the modifiable element of this request having the specified name creating it if doesn't exist already.same as calling
asElement()
.getElement(String)
-
getRequestId
String getRequestId()Returns request id if one exists, otherwise,null
.If there are issues with this request, the request id can be reported to Bloomberg for troubleshooting purposes.
Note that request id is not the same as correlation id and should not be used for correlation purposes.
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(boolean)
-
append
Deprecated.Useappend(Name, boolean)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(boolean)
-
append
Deprecated.Arrays of byte arrays are not supported. This method will always throw an* UnsupportedOperationException
. SeeElement.appendValue(byte[])
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(byte[])
- Throws:
UnsupportedOperationException
- in all cases, since arrays of byte arrays are not supported.
-
append
Deprecated.Arrays of byte arrays are not supported. This method will always throw anUnsupportedOperationException
. SeeElement.appendValue(byte[])
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(byte[])
- Throws:
UnsupportedOperationException
- in all cases, since arrays of byte arrays are not supported.
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(char)
-
append
Deprecated.Useappend(Name, char)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(char)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(int)
-
append
Deprecated.Useappend(Name, int)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(int)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(long)
-
append
Deprecated.Useappend(Name, long)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(long)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(double)
-
append
Deprecated.Useappend(Name, double)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(double)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.getElement(Name)
-
append
Deprecated.Useappend(Name, float)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(float)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(Datetime)
-
append
Deprecated.Useappend(Name, Datetime)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(Datetime)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.Element.getElement(Name)
.Element.appendValue(Constant)
-
append
Deprecated.Useappend(Name, Constant)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(Constant)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(Name)
-
append
Deprecated.Useappend(Name, Name)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(Name)
-
append
Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(Name)
.appendValue(String)
-
append
Deprecated.Useappend(Name, String)
instead.Append the specified value to the named array element of this requestsame as calling
asElement()
.getElement(String)
.appendValue(String)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, boolean)
-
set
Deprecated.Useset(Name, boolean)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, boolean)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, char)
-
set
Deprecated.Useset(Name, char)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, char)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, int)
-
set
Deprecated.Useset(Name, int)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, int)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, long)
-
set
Deprecated.Useset(Name, long)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, long)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, double)
-
set
Deprecated.Useset(Name, double)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, double)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, float)
-
set
Deprecated.Useset(Name, float)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, float)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, Datetime)
-
set
Deprecated.Useset(Name, Datetime)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, Datetime)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, Constant)
-
set
Deprecated.Useset(Name, Constant)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, Constant)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, Name)
-
set
Deprecated.Useset(Name, Name)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, Name)
-
set
Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(Name, String)
-
set
Deprecated.Useset(Name, String)
instead.Set the element of this request having the specified name to the specified value.same as calling
asElement()
.setElement(String, String)
-
set
Set the element of this request having the specified name to the specified value. -
print
Prints the contents of this message to the specified OutputStream.- Throws:
IOException
-
print
Prints the contents of this message to the specified Writer.- Throws:
IOException
-