I need to post some strange data with a Post request, hence I need to extend the PostMethodWebRequest class and reimplement the getMessageBody method. But that's hard to do when the MessageBody class is not visible outside the com.meterware.httpunit package.
I could write my code in this package, but I'd prefer keeping my code in my own packages and httpunit code in meterware packages.
Any particular reason for the MessageBody class not to be public?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to post some strange data with a Post request, hence I need to extend the PostMethodWebRequest class and reimplement the getMessageBody method. But that's hard to do when the MessageBody class is not visible outside the com.meterware.httpunit package.
I could write my code in this package, but I'd prefer keeping my code in my own packages and httpunit code in meterware packages.
Any particular reason for the MessageBody class not to be public?