Class MultiSpeak
java.lang.Object
com.ecec.rweber.multispeak.MultiSpeak
High level class with some static members and functions for navigating Multispeak calls
- Author:
- rweber
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfindExensionItem(Element ext, String extName) Exensions to the Multispeak spec are passed in as<exensionItem>values within a list.static DateTimehelper method to convert returned xml datetime values to something more useablestatic StringThis is a helper function for debugging purposes to print resultsstatic StringtoMultispeakDate(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour) helper method to convert a given date to a useable ISO date for xml calls
-
Field Details
-
SOAP_NAMESPACE
-
-
Constructor Details
-
MultiSpeak
public MultiSpeak()
-
-
Method Details
-
printXML
-
fromMultispeakDate
-
toMultispeakDate
public static String toMultispeakDate(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour) helper method to convert a given date to a useable ISO date for xml calls- Parameters:
year- the year, ex 2020monthOfYear- month of the year, 1-12dayOfMonth- day of the month 1-XhourOfDay- hour of the day 1-24minuteOfHour- minute of the hour 1-59- Returns:
- the date as an ISO date string (suitable for Multispeak)
-
findExensionItem
Exensions to the Multispeak spec are passed in as<exensionItem>values within a list. This helper function takes the list and finds a given<extName>node within the list and returns the value- Parameters:
ext- the element containing the list of extensionItem nodesextName- the name of node to get the value from- Returns:
- the extValue from the given node, null if it doesn't exist
-