@Component public class HttpClientTransport extends Object implements SabTransport
| Constructor and Description |
|---|
HttpClientTransport(org.apache.http.auth.UsernamePasswordCredentials samlCredentials,
org.apache.http.auth.UsernamePasswordCredentials restCredentials,
URI sabEndpoint,
URI restEndPoint) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResponse(String request)
Fire a SAB request
|
InputStream |
getRestResponse(String organisationAbbreviation,
String role) |
@Autowired
public HttpClientTransport(@Qualifier(value="samlCredentials")
org.apache.http.auth.UsernamePasswordCredentials samlCredentials,
@Qualifier(value="restCredentials")
org.apache.http.auth.UsernamePasswordCredentials restCredentials,
@Value(value="${sab.endpoint}")
URI sabEndpoint,
@Value(value="${sab-rest.endpoint}")
URI restEndPoint)
public InputStream getResponse(String request) throws IOException
SabTransportgetResponse in interface SabTransportrequest - the request, serialized XMLIOExceptionpublic InputStream getRestResponse(String organisationAbbreviation, String role)
getRestResponse in interface SabTransportCopyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.