You could write a Servlet or JMX MBean that exposes the class to the your client.
Servlet:
String resourceParameter = ...;
OutputStream out = ...:
InputStream input = Thread.currentThread().getContextClassLoader()
.getResourceAsStream(resourceParameter)
write(input, out);
Client:
GET http://host/DiagnosticServlet?resource=your/ClassName.class
The resource parameter has to be your class file your.ClassName -> your/ClassName.class.
You can then save the file and use javap.
(I think the MBean has to encode your class file into a string (e.g. Base 64) as byte[] is not supported. But I'm not sure about that. The rest would be the same.)
If this will be deployed in production some form of authentication should be configured.