Search in sources :

Example 1 with SrmGetTransferProtocolsRequest

use of org.dcache.srm.v2_2.SrmGetTransferProtocolsRequest in project dcache by dCache.

the class AxisSrmFileSystem method getTransferProtocols.

@Nonnull
@Override
public TSupportedTransferProtocol[] getTransferProtocols() throws SRMException, RemoteException {
    SrmGetTransferProtocolsResponse response = srm.srmGetTransferProtocols(new SrmGetTransferProtocolsRequest());
    checkSuccess(response.getReturnStatus());
    TSupportedTransferProtocol[] protocolArray = response.getProtocolInfo().getProtocolArray();
    return (protocolArray == null) ? new TSupportedTransferProtocol[0] : protocolArray;
}
Also used : SrmGetTransferProtocolsRequest(org.dcache.srm.v2_2.SrmGetTransferProtocolsRequest) SrmGetTransferProtocolsResponse(org.dcache.srm.v2_2.SrmGetTransferProtocolsResponse) TSupportedTransferProtocol(org.dcache.srm.v2_2.TSupportedTransferProtocol) Nonnull(javax.annotation.Nonnull)

Aggregations

Nonnull (javax.annotation.Nonnull)1 SrmGetTransferProtocolsRequest (org.dcache.srm.v2_2.SrmGetTransferProtocolsRequest)1 SrmGetTransferProtocolsResponse (org.dcache.srm.v2_2.SrmGetTransferProtocolsResponse)1 TSupportedTransferProtocol (org.dcache.srm.v2_2.TSupportedTransferProtocol)1