I have a class which processes XML data . The class hierarchy is given below
I have XML Data coming with every request, which gets processed by the appropriate processor based on the request case.
One or more requests use the same processor, since the incoming data for these requests is common but the response sent out varies in each case.
Right now, I'm using a switch statement to determine the response, but i would like to change this and not depend on switch statement. So that i can add more cases(Case 3, Case 4..) without having to go back and add more cases to switch statement everytime.
I'm unable to figure out how to do this.. Please pitch in suggestions..