|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.service.rest.RestChecker
public final class RestChecker
The utility class for flow checking on rest methods. 1. is authenticated? 2. is valid portal container name? 4. is supported media type? 4. is id found? 5. is allowed to access? 6. is any invalid params? 7. returns results.
| Method Summary | |
|---|---|
static void |
checkAuthenticatedRequest()
Checks if the request is authenticated or not. |
static javax.ws.rs.core.MediaType |
checkSupportedFormat(String expectedFormat,
String[] supportedFormats)
Checks if the expected format is supported or not. |
static org.exoplatform.container.PortalContainer |
checkValidPortalContainerName(String portalContainerName)
Checks if the provided portal container name exists or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void checkAuthenticatedRequest()
public static org.exoplatform.container.PortalContainer checkValidPortalContainerName(String portalContainerName)
portalContainerName - the provided portal container name
public static javax.ws.rs.core.MediaType checkSupportedFormat(String expectedFormat,
String[] supportedFormats)
expectedFormat - the expected formatsupportedFormats - the supported formats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||