public interface RestServiceInterface extends ServiceInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME
Nome do serviço para o
ServiceManager |
| Modifier and Type | Method and Description |
|---|---|
String |
createToken(String subject,
Map<String,Object> attributes,
Date expirationDate,
Date issuedDate)
Cria um token assinado
|
String |
getClientHttpServer(String id)
Obtém a URL do servidor HTTP do cliente com o identificador especificado.
|
String |
getExternalURL()
Retorna a URL externa do servidor.
|
boolean |
isClientDeveloperMode()
Recupera uma flag da configuração de Client Developer Mode.
|
void |
logInfoMessage(String msg)
Adiciona no log um registro de evento de informação relacionada a alguma
requisição proveniente da API REST.
|
void |
logSevereMessage(String msg,
Throwable t)
Adiciona no log um registro de evento severo em decorrência de um erro no
servidor causado por alguma requisição proveniente da API REST.
|
String |
parserToken(String token,
Map<String,Object> outAttributes)
Recupera a informação associado ao token.
|
void |
registerClientHttpServer(String id,
String httpServerURL)
Registra uma URL de servidor HTTP do cliente com o identificador
especificado.
|
void |
unregisterClientHttpServer(String id)
Desregistra uma URL de servidor HTTP do cliente com o identificador
especificado.
|
getName, isActivestatic final String SERVICE_NAME
ServiceManagerString getExternalURL()
void logSevereMessage(String msg, Throwable t)
msg - a mensagem para o registro no logt - a exceção que causou o errovoid logInfoMessage(String msg)
msg - a mensagem para o registro no logString parserToken(String token, Map<String,Object> outAttributes) throws ParseException
token - o tokenoutAttributes - Mapa usado para retorno dos atributos via parâmetro.
Se for diferentes de nulo, os atributos adiconais serão preenchidos
nesse mapa.Se for nulo, mesmo havendo atributos adicionais, nao será
possível lê-los.ParseException - Caso o token seja inválidoString createToken(String subject, Map<String,Object> attributes, Date expirationDate, Date issuedDate)
subject - Informacao do subject. Exemplo de uso é o login do usuarioattributes - Atributos adicionais.expirationDate - Uma data de expiraçãoissuedDate - Uma data de emissãoString getClientHttpServer(String id)
id - identificador do cliente.void registerClientHttpServer(String id, String httpServerURL)
id - identificador do cliente.httpServerURL - a URL do servidor HTTP do cliente.void unregisterClientHttpServer(String id)
id - identificador do cliente.boolean isClientDeveloperMode()
Copyright © 2017. All rights reserved.