I have no problem using an enum:
public enum HttpMethod
{
GET, POST
};
@Configurable
@Default(value = "GET")
@Optional
@Placement(order = 4, group = "Connection", tab = "General")
private HttpMethod method;
Doesn't this work for you too?
As a side note, looking at what your @Processor
method does, I'm wondering if you're not re-inventing @RestCall
processors. Also why using a raw HttpURLConnection
when you can perform HTTP calls with the MuleClient
?