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 String
getBody()
String
getHeader(String name)
int
getStatusCode()
String
getStatusText()
-
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:
getStatusCode
in interfaceHttpApi.Response
-
getStatusText
@NotNull public String getStatusText()
- Specified by:
getStatusText
in interfaceHttpApi.Response
-
getBody
@NotNull public String getBody()
- Specified by:
getBody
in interfaceHttpApi.Response
-
getHeader
@Nullable public String getHeader(@NotNull String name)
- Specified by:
getHeader
in interfaceHttpApi.Response
-
-