Package org.mockserver.model
Class HttpSseResponse
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Action<HttpSseResponse>
-
- org.mockserver.model.HttpSseResponse
-
public class HttpSseResponse extends Action<HttpSseResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type
-
-
Constructor Summary
Constructors Constructor Description HttpSseResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BooleangetCloseConnection()List<SseEvent>getEvents()HeadersgetHeaders()IntegergetStatusCode()Action.TypegetType()inthashCode()static HttpSseResponsesseResponse()HttpSseResponsewithCloseConnection(Boolean closeConnection)HttpSseResponsewithEvent(SseEvent event)HttpSseResponsewithEvents(List<SseEvent> events)HttpSseResponsewithEvents(SseEvent... events)HttpSseResponsewithHeader(String name, String... values)HttpSseResponsewithHeader(Header header)HttpSseResponsewithHeaders(Headers headers)HttpSseResponsewithStatusCode(Integer statusCode)-
Methods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimary
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Method Detail
-
sseResponse
public static HttpSseResponse sseResponse()
-
withStatusCode
public HttpSseResponse withStatusCode(Integer statusCode)
-
getStatusCode
public Integer getStatusCode()
-
withHeaders
public HttpSseResponse withHeaders(Headers headers)
-
withHeader
public HttpSseResponse withHeader(Header header)
-
withHeader
public HttpSseResponse withHeader(String name, String... values)
-
getHeaders
public Headers getHeaders()
-
withEvents
public HttpSseResponse withEvents(List<SseEvent> events)
-
withEvents
public HttpSseResponse withEvents(SseEvent... events)
-
withEvent
public HttpSseResponse withEvent(SseEvent event)
-
withCloseConnection
public HttpSseResponse withCloseConnection(Boolean closeConnection)
-
getCloseConnection
public Boolean getCloseConnection()
-
getType
public Action.Type getType()
- Specified by:
getTypein classAction<HttpSseResponse>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAction<HttpSseResponse>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAction<HttpSseResponse>
-
-