Search in sources :

Example 1 with GetParametersRequestImpl

use of org.codice.alliance.nsili.mockserver.impl.requests.GetParametersRequestImpl in project alliance by codice.

the class ProductMgrImpl method get_parameters.

@Override
public GetParametersRequest get_parameters(Product prod, String[] desired_parameters, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
    GetParametersRequestImpl getParametersRequest = new GetParametersRequestImpl();
    try {
        _poa().activate_object_with_id("get_parameters".getBytes(Charset.forName(ENCODING)), getParametersRequest);
    } catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
        LOGGER.warn("get_parameters : Unable to activate getParametersRequest object.", e);
    }
    org.omg.CORBA.Object obj = _poa().create_reference_with_id("get_parameters".getBytes(Charset.forName(ENCODING)), GetParametersRequestHelper.id());
    GetParametersRequest queryRequest = GetParametersRequestHelper.narrow(obj);
    return queryRequest;
}
Also used : WrongPolicy(org.omg.PortableServer.POAPackage.WrongPolicy) ObjectAlreadyActive(org.omg.PortableServer.POAPackage.ObjectAlreadyActive) ServantAlreadyActive(org.omg.PortableServer.POAPackage.ServantAlreadyActive) GetParametersRequestImpl(org.codice.alliance.nsili.mockserver.impl.requests.GetParametersRequestImpl) GetParametersRequest(org.codice.alliance.nsili.common.GIAS.GetParametersRequest)

Aggregations

GetParametersRequest (org.codice.alliance.nsili.common.GIAS.GetParametersRequest)1 GetParametersRequestImpl (org.codice.alliance.nsili.mockserver.impl.requests.GetParametersRequestImpl)1 ObjectAlreadyActive (org.omg.PortableServer.POAPackage.ObjectAlreadyActive)1 ServantAlreadyActive (org.omg.PortableServer.POAPackage.ServantAlreadyActive)1 WrongPolicy (org.omg.PortableServer.POAPackage.WrongPolicy)1