Hi, +1 for taking the input as a list of comma separated values. It is better to validate those values.
Thanks Sudharma On Fri, Jul 14, 2017 at 11:53 AM, Riyafa Abdul Hameed <[email protected]> wrote: > Hi, > > I am creating a custom mediator and one of the configuration parameters > would have to take as input a list of values. What is the best or standard > way to do this? I plan to take in string with comma separated values and > split it by the commas and then trim it to get the values in the list. > Would that work? > > To elaborate more consider the syntax for cache mediator: > > <cache [id="string"] [hashGenerator="class"] [timeout="seconds"] > [scope=(per-host | per-mediator)] collector=(true | false) > [maxMessageSize="in-bytes"] hTTPMethodToCache = (GET | POST)] > > headersToExcludeInHash=”comma separated list of headers”> > > <onCacheHit [sequence="key"] [continueExecution=(true | false)]> > > (mediator)+ > > </onCacheHit>? > > <implementation maxMessagesInCachemaxSize="int"/> > > </cache> > > > if the value for the "headersToExcludeInHash" needs to be a list, is it > correct to take as input a list of comma separated values in a single > string? > > > Thank you. > > Yours faithfully, > > Riyafa > > -- > Riyafa Abdul Hameed > Software Engineer, WSO2 Lanka (Pvt) Ltd <http://wso2.com/> > > Email: [email protected] <[email protected]> > Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/> > <http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa> > <http://twitter.com/Riyafa1> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Sudharma Subasinghe, Software Engineer, WSO2 Inc. Email: [email protected] <[email protected]> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
