@Controller @RequestMapping(value="/access_token") public class AccessTokenController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL_ACCESS_TOKEN |
static String |
MODEL_MESSAGE |
static String |
MSG_ACCESS_TOKEN_CREATED_FORMAT |
static String |
MSG_ACCESS_TOKEN_DELETED_FORMAT |
static String |
PATH_VAR_ID |
static String |
URL_CREATE_ACCESS_TOKEN |
static String |
URL_DELETE_ACCESS_TOKEN |
static String |
URL_GET_ACCESS_TOKEN |
static String |
URL_GET_ALL_ACCESS_TOKENS |
static String |
URL_VIEW_ACCESS_TOKEN |
static String |
URL_VIEW_ACCESS_TOKEN_LIST |
static String |
URL_VIEW_NEW_ACCESS_TOKEN |
static String |
VIEW_ACCESS_TOKEN |
static String |
VIEW_ACCESS_TOKEN_LIST |
static String |
VIEW_NEW_ACCESS_TOKEN |
| Constructor and Description |
|---|
AccessTokenController() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
createAccessToken(AccessToken token) |
Map<String,String> |
deleteAccessToken(String id) |
AccessToken |
getAccessToken(String id) |
List<AccessToken> |
getAllAccessTokens() |
void |
setAccessTokenService(AccessTokenService accessTokenService) |
String |
viewAccessToken() |
String |
viewAccessTokenList() |
String |
viewNewAccessToken() |
public static final String BASE_URL_ACCESS_TOKEN
public static final String PATH_VAR_ID
public static final String URL_VIEW_ACCESS_TOKEN_LIST
public static final String URL_VIEW_NEW_ACCESS_TOKEN
public static final String URL_VIEW_ACCESS_TOKEN
public static final String URL_GET_ALL_ACCESS_TOKENS
public static final String URL_GET_ACCESS_TOKEN
public static final String URL_CREATE_ACCESS_TOKEN
public static final String URL_DELETE_ACCESS_TOKEN
public static final String VIEW_ACCESS_TOKEN_LIST
public static final String VIEW_NEW_ACCESS_TOKEN
public static final String VIEW_ACCESS_TOKEN
public static final String MODEL_MESSAGE
public static final String MSG_ACCESS_TOKEN_CREATED_FORMAT
public static final String MSG_ACCESS_TOKEN_DELETED_FORMAT
public void setAccessTokenService(AccessTokenService accessTokenService)
@RequestMapping(value="/list/view",
method=GET)
public String viewAccessTokenList()
throws ProfileException
ProfileException@RequestMapping(value="/new/view",
method=GET)
public String viewNewAccessToken()
throws ProfileException
ProfileException@RequestMapping(value="/view",
method=GET)
public String viewAccessToken()
throws ProfileException
ProfileException@RequestMapping(value="/all",
method=GET)
@ResponseBody
public List<AccessToken> getAllAccessTokens()
throws ProfileException
ProfileException@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public AccessToken getAccessToken(@PathVariable(value="id")
String id)
throws ProfileException
ProfileException@RequestMapping(value="/create",
method=POST)
@ResponseBody
public Map<String,String> createAccessToken(@RequestBody
AccessToken token)
throws ProfileException
ProfileException@RequestMapping(value="/{id}/delete",
method=POST)
@ResponseBody
public Map<String,String> deleteAccessToken(@PathVariable(value="id")
String id)
throws ProfileException
ProfileExceptionCopyright © 2021 CrafterCMS. All rights reserved.