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

org.gs4tr.gcc.restclient.operation.SessionTerminate Maven / Gradle / Ivy

Go to download

GlobalLink Connect Cloud java is a library to connect your system to GlobalLink Connect Cloud REST API.

There is a newer version: 3.1.3
Show newest version
package org.gs4tr.gcc.restclient.operation;

import org.gs4tr.gcc.restclient.GCConfig;
import org.gs4tr.gcc.restclient.dto.GCResponse;
import org.gs4tr.gcc.restclient.request.GCRequest;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

public class SessionTerminate extends GCOperation {

    private static final String REQUEST_URL = "session/terminate";
    private static final String REQUEST_METHOD = "POST";

    public SessionTerminate(GCConfig config) {
	super(config);
    }

    @Override
    public String getRequestMethod() {
	return REQUEST_METHOD;
    }

    @Override
    protected String getApiUrl() {
	return REQUEST_URL;
    }

    @Override
    public GCRequest getRequestObject() {
	return new SessionTerminateRequest(config.getBearerToken());
    }

    @Override
    public Class getResponseClass() {
	return SessionTerminateResponse.class;
    }

    public class SessionTerminateRequest extends GCRequest {
	private final String user_session_key;

	public SessionTerminateRequest(String user_session_key) {
	    this.user_session_key = user_session_key;
	}

	public String getUser_session_key() {
	    return user_session_key;
	}

    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SessionTerminateResponse extends GCResponse {
	

	@Override
	public Object getResponseData() {
	    return null;
	}

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy