org.hpccsystems.ws.client.wrappers.wsworkunits.WsWorkunitsClientStub1_62 Maven / Gradle / Ivy
package org.hpccsystems.ws.client.wrappers.wsworkunits;
import org.apache.axis2.AxisFault;
import org.hpccsystems.ws.client.BaseHPCCWsClient;
import org.hpccsystems.ws.client.HPCCWsWorkUnitsClient;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.WUInfoResponse;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_62.WsWorkunitsStub;
import org.hpccsystems.ws.client.utils.Connection;
public class WsWorkunitsClientStub1_62 implements IWsWorkunitsClientStubWrapper
{
final private Connection connection;
/**
* Instantiates a new ws workunits client stub 1 62.
*
* @param connection
* the connection
*/
public WsWorkunitsClientStub1_62(final Connection connection)
{
this.connection = connection;
}
/**
* Gets the stub.
*
* @return the stub
* @throws AxisFault
* the axis fault
*/
public WsWorkunitsStub getStub() throws AxisFault
{
WsWorkunitsStub stub = new WsWorkunitsStub(connection.getBaseUrl() + HPCCWsWorkUnitsClient.WSWORKUNITSWSDLURI);
stub = (WsWorkunitsStub) BaseHPCCWsClient.setStubOptions(stub, connection);
return stub;
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUInfo(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUInfoRequestWrapper)
*/
@Override
public WUInfoResponseWrapper WUInfo(final WUInfoRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
final WUInfoResponse response = stub.wUInfo(params.getRawVersion1_62());
return new WUInfoResponseWrapper(response);
}
/*
* (non-Javadoc)
*
* @see
* org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUCreateAndUpdate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUCreateAndUpdateWrapper)
*/
@Override
public WUUpdateResponseWrapper WUCreateAndUpdate(final WUCreateAndUpdateWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUUpdateResponseWrapper(stub.wUCreateAndUpdate(params.getRawVersion1_62()));
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUCreate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUCreateRequestWrapper)
*/
@Override
public WUCreateResponseWrapper WUCreate(final WUCreateRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUCreateResponseWrapper(stub.wUCreate(params.getRawVersion1_62()));
}
/*
* (non-Javadoc)
*
* @see org.hpccsystems.ws.client.wrappers.wsworkunits.IWsWorkunitsClientStubWrapper#WUUpdate(org.hpccsystems.ws.client.wrappers.wsworkunits.
* WUUpdateRequestWrapper)
*/
@Override
public WUUpdateResponseWrapper WUUpdate(final WUUpdateRequestWrapper params) throws Exception
{
final WsWorkunitsStub stub = getStub();
return new WUUpdateResponseWrapper(stub.wUUpdate(params.getRawVersion1_62()));
}
}