Package jetbrains.buildServer.http
Class ControllerBasedHttpApi
- java.lang.Object
-
- jetbrains.buildServer.http.ControllerBasedHttpApi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.http.HttpApi
HttpApi.HeaderPair, HttpApi.Response
-
-
Constructor Summary
Constructors Constructor Description ControllerBasedHttpApi(HashMap<String,org.springframework.web.servlet.mvc.AbstractController> controllers, String servletPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCookie(String cookieName, String cookieValue, String domain, int maxAgeSeconds)
HttpApi.Response
get(String uri, HttpApi.HeaderPair... headers)
List<String>
getPostsRequests()
HttpApi.Response
post(String uri, String body, String contentType, String charset, HttpApi.HeaderPair... headers)
void
reset()
void
setInterceptor(org.springframework.web.servlet.handler.HandlerInterceptorAdapter interceptor)
-
-
-
Method Detail
-
get
@NotNull public HttpApi.Response get(@NotNull String uri, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Specified by:
get
in interfaceHttpApi
- Throws:
IOException
-
post
@NotNull public HttpApi.Response post(@NotNull String uri, @NotNull String body, @NotNull String contentType, @NotNull String charset, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Specified by:
post
in interfaceHttpApi
- Throws:
IOException
-
addCookie
public void addCookie(@NotNull String cookieName, @NotNull String cookieValue, @NotNull String domain, int maxAgeSeconds)
-
reset
public void reset()
-
setInterceptor
public void setInterceptor(org.springframework.web.servlet.handler.HandlerInterceptorAdapter interceptor)
-
-