Issue Details (XML | Word | Printable)

Key: MULE-3835
Type: Patch submission Patch submission
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Hendrik Saly
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Mule

Code contribution (EndpointURIExpressionEvaluator)

Created: 15/Oct/08 02:30 AM   Updated: 21/Oct/08 10:13 AM
Component/s: Core: (other)
Affects Version/s: 2.0.2
Fix Version/s: 2.x Product Backlog

Time Tracking:
Not Specified

File Attachments: 1. Java Source File EndpointURIExpressionEvaluator.java (3 kB)
2. Java Source File EndpointURIExpressionEvaluatorTestCase.java (3 kB)


Includes test case?: yes
Labels:
User impact: Low
Affects Docs: Yes
Migration Impact: META-INF/services/org/mule/config/registry-bootstrap.properties should be changed to include the evaluator


 Description  « Hide
please find attached some code i want to contribute.
It an implementation of the ExpressionEvaluator interface which evaluates an EndpointURI.
Its currently part of the ldap transport project, but i think its not the right place for it.

It does:
a) ${endpointuri:endpointname.params:yyy} is evaluated to getParams().get("yyy") on the EndpointURI of the registered endpoint with the name 'endpointname'.
b) ${endpointuri:endpointname.userParams:yyy} is evaluated to getUserParams().get("yyy") on the EndpointURI of the registered endpoint with the name 'endpointname'.
c) ${endpointuri:endpointname.xxx} is evaluated to getXxx() on the EndpointURI of the registered endpoint with the name 'endpointname'.

Example for endpoint uri: "ldap://ldap.out/payload.cn?cnprop=testprop"
${endpointuri:endpointname.host} -> "ldap.out"
${endpointuri:endpointname.params:cnprop} -> "testprop"



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.