How to do _cat/indices/<index_name_with_reg_ex> in JAVA

You can't call cat API from transport client. It's a REST API only.

But you can look at the source code to see how it's implemented behind the scene and do the same thing from the transport client.