public class RestApiUtil extends Object
| Constructor and Description |
|---|
RestApiUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ErrorDTO |
getErrorDTO(String message,
Integer code,
String description)
Returns a generic errorDTO
|
static ErrorDTO |
getInternalServerErrorDTO()
Returns an Internal Server Error DTO
|
static String |
getLoggedInUsername(org.wso2.msf4j.Request request)
Get the current logged in user's username
|
public static String getLoggedInUsername(org.wso2.msf4j.Request request)
request - msf4j requestpublic static ErrorDTO getInternalServerErrorDTO()
Copyright © 2018 WSO2. All rights reserved.