Class HttpAdapterMvcMock
java.lang.Object
org.linkedopenactors.rdfpub.client2024.HttpAdapterMvcMock
- All Implemented Interfaces:
HttpAdapter
-
Field Summary
Fields inherited from interface org.linkedopenactors.rdfpub.client2024.HttpAdapter
MEDIA_TYPE_JSON_LD, MEDIA_TYPE_TURTLE
-
Constructor Summary
ConstructorDescriptionHttpAdapterMvcMock
(org.springframework.test.web.servlet.MockMvc mockMvc, String userId, String preferredUsername) -
Method Summary
Modifier and TypeMethodDescriptionget
(String url, HttpHeaderAttribute... headerAttributes) get
(org.springframework.http.MediaType mediaType, String url, HttpHeaderAttribute... headerAttributes) getAuthenticated
(String url, HttpHeaderAttribute... headerAttributes)
-
Constructor Details
-
HttpAdapterMvcMock
-
-
Method Details
-
get
- Specified by:
get
in interfaceHttpAdapter
-
get
public Response get(org.springframework.http.MediaType mediaType, String url, HttpHeaderAttribute... headerAttributes) - Specified by:
get
in interfaceHttpAdapter
-
getAuthenticated
- Specified by:
getAuthenticated
in interfaceHttpAdapter
-
post
- Specified by:
post
in interfaceHttpAdapter
-
post
public Response post(String url, String body, org.linkedopenactors.rdfpub.domain.commonsrdf.RdfFormat rdfFormat) - Specified by:
post
in interfaceHttpAdapter
-