/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2020-2022 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return false;
}
return ("xacml+json".equals(mediaType.getSubtype()))
- && (type == Request.class || type == Response.class);
+ && (Request.class.isAssignableFrom(type) || Response.class.isAssignableFrom(type));
}
}
\ No newline at end of file