| 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.
|
java.net.URL |
getSSPUrl(java.lang.String urlFragment,
boolean useContext)
Get an SSP URL.
|
void |
setAuthenticationUrl(java.lang.String authenticationUrl) |
void |
setClientId(java.lang.String clientId) |
void |
setClientSecret(java.lang.String clientSecret) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setSspContext(java.lang.String sspContext)
Set the SSP API Context.
|
void |
setSspHost(java.lang.String sspHost) |
void |
setSspPort(int sspPort) |
void |
setSspProtocol(java.lang.String sspProtocol) |
@Autowired public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
@Value(value="${studentSuccessPlanService.clientId:}")
public void setClientId(java.lang.String clientId)
@Value(value="${studentSuccessPlanService.clientSecret:}")
public void setClientSecret(java.lang.String clientSecret)
@Value(value="${studentSuccessPlanService.authenticationUrl:/api/1/oauth2/token}")
public void setAuthenticationUrl(java.lang.String authenticationUrl)
@Value(value="${studentSuccessPlanService.sspProtocol:https}")
public void setSspProtocol(java.lang.String sspProtocol)
@Value(value="${studentSuccessPlanService.sspHost:}")
public void setSspHost(java.lang.String sspHost)
@Value(value="${studentSuccessPlanService.sspPort:443}")
public void setSspPort(int sspPort)
@Value(value="${studentSuccessPlanService.sspContext:/ssp}")
public void setSspContext(java.lang.String sspContext)
sspContext - the API contextpublic <T> org.springframework.http.ResponseEntity<T> doRequest(SSPApiRequest<T> request) throws java.net.MalformedURLException, org.springframework.web.client.RestClientException
doRequest in interface ISSPApiT - The type of the response contentrequest - the SSP Requestjava.net.MalformedURLException - if the URL is invalidorg.springframework.web.client.RestClientException - if an error occurs communicating with SSPpublic java.net.URL getSSPUrl(java.lang.String urlFragment,
boolean useContext)
throws java.net.MalformedURLException