| Constructor and Description |
|---|
SSPApi() |
| Modifier and Type | Method and Description |
|---|---|
<T> org.springframework.http.ResponseEntity<T> |
doRequest(SSPApiRequest<T> request)
Make a request to the SSP REST API.
|
URL |
getSSPUrl(String urlFragment,
boolean useContext)
Get an SSP URL.
|
void |
setAuthenticationUrl(String authenticationUrl) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setSspContext(String sspContext)
Set the SSP API Context.
|
void |
setSspHost(String sspHost) |
void |
setSspPort(int sspPort) |
void |
setSspProtocol(String sspProtocol) |
@Autowired public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
@Value(value="${studentSuccessPlanService.clientId:}")
public void setClientId(String clientId)
@Value(value="${studentSuccessPlanService.clientSecret:}")
public void setClientSecret(String clientSecret)
@Value(value="${studentSuccessPlanService.authenticationUrl:/api/1/oauth2/token}")
public void setAuthenticationUrl(String authenticationUrl)
@Value(value="${studentSuccessPlanService.sspProtocol:https}")
public void setSspProtocol(String sspProtocol)
@Value(value="${studentSuccessPlanService.sspHost:}")
public void setSspHost(String sspHost)
@Value(value="${studentSuccessPlanService.sspPort:443}")
public void setSspPort(int sspPort)
@Value(value="${studentSuccessPlanService.sspContext:/ssp}")
public void setSspContext(String sspContext)
sspContext - the API contextpublic <T> org.springframework.http.ResponseEntity<T> doRequest(SSPApiRequest<T> request) throws MalformedURLException, org.springframework.web.client.RestClientException
doRequest in interface ISSPApiT - The type of the response contentrequest - the SSP RequestMalformedURLException - if the URL is invalidorg.springframework.web.client.RestClientException - if an error occurs communicating with SSPpublic URL getSSPUrl(String urlFragment, boolean useContext) throws MalformedURLException
getSSPUrl in interface ISSPApiurlFragment - The URL fragment.useContext - if True, prepend the SSP api context, otherwise just use urlFragment as the pathMalformedURLException - if the URL can not be constructedCopyright © 2016 Jasig. All Rights Reserved.