5

How to pass an Enum like OAuthSignature.HTTPMethod as an argument to a Java method in ColdFusion?

Thank you.

1 Answer 1

11

Found it:

createObject("java","com.paypal.sdk.util.OAuthSignature$HTTPMethod")

Thanks to : http://www.aguyinagarage.com/2011/02/using-java-enums-from-coldfusion/

Reference: Java - Get reference to a static class using reflection

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.