Lines Matching refs:request
36 * For a specific request and result code/diagnostic, get the response object if possible.
43 * Retrieve the expected response type for the request that was given.
48 $request = $message->getRequest();
50 if ($request instanceof BindRequest) {
52 } elseif ($request instanceof SearchRequest) {
54 } elseif ($request instanceof AddRequest) {
55 $response = new AddResponse($resultCode, $request->getEntry()->getDn()->toString(), $diagnostic);
56 } elseif ($request instanceof CompareRequest) {
57 $response = new CompareResponse($resultCode, $request->getDn()->toString(), $diagnostic);
58 } elseif ($request instanceof DeleteRequest) {
59 $response = new DeleteResponse($resultCode, $request->getDn()->toString(), $diagnostic);
60 } elseif ($request instanceof ModifyDnRequest) {
61 $response = new ModifyDnResponse($resultCode, $request->getDn()->toString(), $diagnostic);
62 } elseif ($request instanceof ModifyRequest) {
63 $response = new ModifyResponse($resultCode, $request->getDn()->toString(), $diagnostic);
64 } elseif ($request instanceof ExtendedRequest) {
67 return $this->getExtendedError('Invalid request.', ResultCode::OPERATIONS_ERROR);