All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.security.oauth.callback.ProcessCallback Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.security.oauth.callback;

import org.mule.api.devkit.ProcessTemplate;

import java.util.List;

/**
 * Callback with logic to execute within a controlled environment provided by {@link ProcessTemplate}
 *  @param  type of the return value of the processing execution
 * 
 */
public abstract class ProcessCallback
{

    private String accessTokenId;
    
    public abstract T process(O object) throws Exception;

    public abstract List> getManagedExceptions();

    public abstract boolean isProtected();

    public String getAccessTokenId()
    {
        return accessTokenId;
    }

    public void setAccessTokenId(String accessTokenId)
    {
        this.accessTokenId = accessTokenId;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy