public class LmngUtil extends Object
LmngServiceImpl| Modifier and Type | Field and Description |
|---|---|
static String |
ENDPOINT_PLACEHOLDER |
static String |
INSTITUTION_IDENTIFIER_PLACEHOLDER |
static String |
QUERY_PLACEHOLDER |
static String |
UID_PLACEHOLDER |
| Constructor and Description |
|---|
LmngUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLmngRequestEnvelope() |
static String |
getLmngSoapRequestForIdpAndSp(String institutionId,
List<String> serviceIds,
Date validOn,
String endpoint) |
static String |
getLmngSoapRequestForSps(Collection<String> serviceIds,
String endpoint) |
static boolean |
isValidGuid(String guid) |
static List<Article> |
parseArticlesResult(String webserviceResult,
boolean writeResponseToFile)
Parse the result to an article(list)
|
static List<License> |
parseLicensesResult(String webserviceResult,
boolean writeResponseToFile)
Parse the result to a license(list)
|
static String |
parseResultInstitute(String webserviceResult,
boolean writeResponseToFile) |
static void |
writeIO(String filename,
String content)
Write the given content to a file with the given filename (and add a
datetime prefix).
|
public static final String ENDPOINT_PLACEHOLDER
public static final String UID_PLACEHOLDER
public static final String QUERY_PLACEHOLDER
public static final String INSTITUTION_IDENTIFIER_PLACEHOLDER
public static List<Article> parseArticlesResult(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
public static List<License> parseLicensesResult(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
public static String parseResultInstitute(String webserviceResult, boolean writeResponseToFile) throws ParserConfigurationException, SAXException, IOException, ParseException
public static void writeIO(String filename, String content)
filename - content - public static boolean isValidGuid(String guid)
public static String getLmngSoapRequestForIdpAndSp(String institutionId, List<String> serviceIds, Date validOn, String endpoint) throws IOException
IOExceptionpublic static String getLmngSoapRequestForSps(Collection<String> serviceIds, String endpoint) throws IOException
IOExceptionpublic static String getLmngRequestEnvelope() throws IOException
IOExceptionCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.