interface RequestInterface
Interface RequestInterface
Methods
null|string |
getIndex()
Gets the elasticsearch index |
|
null|string |
getType()
Gets the elasticsearch type |
|
string |
getMethod()
Gets the request method |
|
null|string |
getAction()
Gets the elasticsearch action/endpoint like (_search, _mapping) |
|
SerializerInterface |
getSerializer()
Gets the serializer |
|
array |
getSerializerParams()
Gets the serializer params |
|
mixed |
getBody()
get the body |
|
void |
setBody(mixed $body)
before setting data it should be serialized |
|
null|ResponseInterface |
createResponse(string $rawData, SerializerInterface $serializer, array $serializerParams = array())
|
|
string |
getSupportedClass()
gets a response class name that is supported by this class |
Details
at line 37
public null|string
getIndex()
Gets the elasticsearch index
at line 45
public null|string
getType()
Gets the elasticsearch type
at line 53
public string
getMethod()
Gets the request method
at line 62
public null|string
getAction()
Gets the elasticsearch action/endpoint like (_search, _mapping)
at line 70
public SerializerInterface
getSerializer()
Gets the serializer
at line 78
public array
getSerializerParams()
Gets the serializer params
at line 86
public mixed
getBody()
get the body
at line 97
public void
setBody(mixed $body)
before setting data it should be serialized
at line 107
public null|ResponseInterface
createResponse(string $rawData, SerializerInterface $serializer, array $serializerParams = array())
at line 119
public string
getSupportedClass()
gets a response class name that is supported by this class