def rule(event):
    if all(
        [
            event.deep_get("cs-content-type", default="") == "application/octet-stream",
            event.deep_get("cs-method", default="") == "POST",
            "/irj/" in event.deep_get("cs-uri-stem", default=""),
            ".jsp" in event.deep_get("cs-uri-stem", default=""),
            any(
                [
                    event.deep_get("cs-uri-stem", default="").endswith(".class"),
                    event.deep_get("cs-uri-stem", default="").endswith(".java"),
                    event.deep_get("cs-uri-stem", default="").endswith(".jsp"),
                ]
            ),
        ]
    ):
        return True
    return False
