Example usage for com.liferay.portal.kernel.util Base64 stringToObject

List of usage examples for com.liferay.portal.kernel.util Base64 stringToObject

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util Base64 stringToObject.

Prototype

public static Object stringToObject(String s, ClassLoader classLoader) 

Source Link

Usage

From source file:com.liferay.wsrp.model.impl.WSRPConsumerImpl.java

License:Open Source License

public RegistrationContext getRegistrationContext() {
    if (_registrationContext != null) {
        return _registrationContext;
    }//ww w . java  2  s .  co  m

    String registrationContextString = getRegistrationContextString();

    if (Validator.isNotNull(registrationContextString)) {
        _registrationContext = (RegistrationContext) Base64.stringToObject(registrationContextString,
                getClass().getClassLoader());
    }

    return _registrationContext;
}