Package jetbrains.buildServer.http
Class FakeHttpApi.SimpleResponse
- java.lang.Object
-
- jetbrains.buildServer.http.FakeHttpApi.SimpleResponse
-
- All Implemented Interfaces:
AutoCloseable,HttpApi.Response
- Direct Known Subclasses:
FakeHttpApi.NotFound
- Enclosing class:
- FakeHttpApi
public static class FakeHttpApi.SimpleResponse extends Object implements HttpApi.Response
-
-
Constructor Summary
Constructors Constructor Description SimpleResponse(String body, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()StringgetHeader(String name)intgetStatusCode()StringgetStatusText()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.http.HttpApi.Response
close, getBodyInputStream, getBodyReader
-
-
-
-
Constructor Detail
-
SimpleResponse
public SimpleResponse(String body, int status)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCodein interfaceHttpApi.Response
-
getStatusText
@NotNull public String getStatusText()
- Specified by:
getStatusTextin interfaceHttpApi.Response
-
getBody
@NotNull public String getBody()
- Specified by:
getBodyin interfaceHttpApi.Response
-
getHeader
@Nullable public String getHeader(@NotNull String name)
- Specified by:
getHeaderin interfaceHttpApi.Response
-
-