Package org.mockserver.model
Class HttpObjectCallback
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Action<HttpObjectCallback>
-
- org.mockserver.model.HttpObjectCallback
-
public class HttpObjectCallback extends Action<HttpObjectCallback>
- Author:
- jamesdbloom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type
-
-
Constructor Summary
Constructors Constructor Description HttpObjectCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetClientId()BooleangetResponseCallback()Action.TypegetType()inthashCode()HttpObjectCallbackwithActionType(Action.Type actionType)HttpObjectCallbackwithClientId(String clientId)The client id of the web socket client that will handle the callbackHttpObjectCallbackwithResponseCallback(Boolean responseCallback)-
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
-
getClientId
public String getClientId()
-
withClientId
public HttpObjectCallback withClientId(String clientId)
The client id of the web socket client that will handle the callbackThe client id must be for client with an open web socket, if no client is found with id a 404 response will be returned
- Parameters:
clientId- client id of the web socket client that will handle the callback
-
getResponseCallback
public Boolean getResponseCallback()
-
withResponseCallback
public HttpObjectCallback withResponseCallback(Boolean responseCallback)
-
withActionType
public HttpObjectCallback withActionType(Action.Type actionType)
-
getType
public Action.Type getType()
- Specified by:
getTypein classAction<HttpObjectCallback>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAction<HttpObjectCallback>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAction<HttpObjectCallback>
-
-