public class MLPResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MLPResponse.MLPResultType |
| Constructor and Description |
|---|
MLPResponse(javax.slee.facilities.Tracer logger) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPositionErrorResponseXML(String msid,
MLPResponse.MLPResultType mlpClientErrorType,
String mlpClientErrorMessage)
Generate a MLP error response for a position
|
static String |
getResultCodeForType(MLPResponse.MLPResultType t)
Get the MLP result code as per OMA MLP section 5.4.1
|
static String |
getResultStringForType(MLPResponse.MLPResultType t)
Get the MLP result string as per OMA MLP section 5.4.1
|
String |
getSinglePositionSuccessXML(String x,
String y,
String radius,
String msid)
Use JiBX marshalling to generate the MLP XML result data for a single successful position look-up
|
String |
getSystemErrorResponseXML(MLPResponse.MLPResultType mlpClientErrorType,
String mlpClientErrorMessage)
Generate a MLP system error response
|
static boolean |
isSystemError(MLPResponse.MLPResultType t)
Is this error type a system error?
|
public static String getResultCodeForType(MLPResponse.MLPResultType t)
t - MLPResultType internal enum value for use in the MLP classespublic static String getResultStringForType(MLPResponse.MLPResultType t)
t - MLPResultType internal enum value for use in the MLP classespublic static boolean isSystemError(MLPResponse.MLPResultType t)
t - MLPResultType internal enum value for use in the MLP classespublic String getSinglePositionSuccessXML(String x, String y, String radius, String msid)
x - X coordinate in WGS84 DMS formaty - Y coordinate in WGS84 DMS formatradius - Position radius in meters (e.g. 5000 for 5km of accuracy)msid - Location for MSISDNpublic String getSystemErrorResponseXML(MLPResponse.MLPResultType mlpClientErrorType, String mlpClientErrorMessage)
mlpClientErrorType - Error type to return to clientmlpClientErrorMessage - Error message to send to clientpublic String getPositionErrorResponseXML(String msid, MLPResponse.MLPResultType mlpClientErrorType, String mlpClientErrorMessage)
msid - Device MSISDNmlpClientErrorType - Error type to return to clientmlpClientErrorMessage - Error message to send to clientCopyright © 2016. All Rights Reserved.