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 TypeMethodDescriptionvoidAppend the specified value to the named array element of this requestvoidDeprecated.Arrays of byte arrays are not supported.voidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidAppend the specified value to the named array element of this requestvoidDeprecated.Useappend(Name, boolean)instead.voidDeprecated.Arrays of byte arrays are not supported.voidDeprecated.Useappend(Name, char)instead.voidDeprecated.Useappend(Name, double)instead.voidDeprecated.Useappend(Name, float)instead.voidDeprecated.Useappend(Name, int)instead.voidDeprecated.Useappend(Name, long)instead.voidDeprecated.Useappend(Name, Constant)instead.voidDeprecated.Useappend(Name, Datetime)instead.voidDeprecated.Useappend(Name, Name)instead.voidDeprecated.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.booleanhasElement(Name name) Return true if this request contains the element having the specified name false otherwisebooleanhasElement(String name) Deprecated.UsehasElement(Name)instead.Return the Operation this Request is intended to invoke on the associated Service.voidprint(OutputStream output) Prints the contents of this message to the specified OutputStream.voidPrints the contents of this message to the specified Writer.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidSet the element of this request having the specified name to the specified value.voidDeprecated.Useset(Name, boolean)instead.voidDeprecated.Useset(Name, char)instead.voidDeprecated.Useset(Name, double)instead.voidDeprecated.Useset(Name, float)instead.voidDeprecated.Useset(Name, int)instead.voidDeprecated.Useset(Name, long)instead.voidDeprecated.Useset(Name, Constant)instead.voidDeprecated.Useset(Name, Datetime)instead.voidDeprecated.Useset(Name, Name)instead.voidDeprecated.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
-