BindingOperationInfo boi = getBindingOperationInfo(exchange); if (boi != null && !Boolean.TRUE.equals(boi.getProperty("operation.is.synthetic"))) { ret = boi.getName();
/** {@inheritDoc}*/ @Override public MetricsContext createOperationContext(Endpoint endpoint, BindingOperationInfo boi, boolean asClient, String clientId) { StringBuilder buffer = getBaseServiceName(endpoint, asClient, clientId); buffer.append("Operation=").append(boi.getName().getLocalPart()).append(','); return new CodahaleMetricsContext(buffer.toString(), registry); }
/** {@inheritDoc}*/ @Override public MetricsContext createOperationContext(Endpoint endpoint, BindingOperationInfo boi, boolean asClient, String clientId) { StringBuilder buffer = getBaseServiceName(endpoint, asClient, clientId); buffer.append("Operation=").append(boi.getName().getLocalPart()).append(','); return new CodahaleMetricsContext(buffer.toString(), registry); }
/** * Removes an operation from this service. * * @param operation the operation. */ public void removeOperation(BindingOperationInfo operation) { if (operation.getName() == null) { throw new NullPointerException( new Message("BINDING.OPERATION.NAME.NOT.NULL", LOG).toString()); } operations.remove(operation.getName()); }
/** * Removes an operation from this service. * * @param operation the operation. */ public void removeOperation(BindingOperationInfo operation) { if (operation.getName() == null) { throw new NullPointerException( new Message("BINDING.OPERATION.NAME.NOT.NULL", LOG).toString()); } operations.remove(operation.getName()); }
/** * Removes an operation from this service. * * @param operation the operation. */ public void removeOperation(BindingOperationInfo operation) { if (operation.getName() == null) { throw new NullPointerException( new Message("BINDING.OPERATION.NAME.NOT.NULL", LOG).toString()); } operations.remove(operation.getName()); }
/** * Removes an operation from this service. * * @param operation the operation. */ public void removeOperation(BindingOperationInfo operation) { if (operation.getName() == null) { throw new NullPointerException( new Message("BINDING.OPERATION.NAME.NOT.NULL", LOG).toString()); } operations.remove(operation.getName()); }
private String getOperationName(Message message) { String operationName = null; BindingOperationInfo boi = null; boi = message.getExchange().getBindingOperationInfo(); if (null != boi) { operationName = boi.getName().toString(); } return operationName; }
private String getOperationName(Message message) { String operationName = null; BindingOperationInfo boi = null; boi = message.getExchange().getBindingOperationInfo(); if (null != boi) { operationName = boi.getName().toString(); } return operationName; }
@Override public boolean appliesTo(BindingOperationInfo boi) { if ("usernamepassword".equals(url)) { return "doOperationLevelPolicy".equals(boi.getName().getLocalPart()); } return false; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.get(Endpoint.class); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
private boolean checkBindingOperationFault(BindingFaultInfo bfi) { return (bfi.getFaultInfo() != null) && (bfi.getFaultInfo().getFaultName() != null) && (bfi.getBindingOperation().getName() != null) && (bfi.getBindingOperation().getBinding() != null) && (bfi.getBindingOperation().getBinding().getName() != null) && wsdl11XPointer.matchesBindingOperationFault( bfi.getFaultInfo().getFaultName().getNamespaceURI(), bfi.getBindingOperation().getBinding().getName().getLocalPart(), bfi.getBindingOperation().getName().getLocalPart(), bfi.getFaultInfo().getFaultName().getLocalPart()); }
private boolean checkBindingOperationFault(BindingFaultInfo bfi) { return (bfi.getFaultInfo() != null) && (bfi.getFaultInfo().getFaultName() != null) && (bfi.getBindingOperation().getName() != null) && (bfi.getBindingOperation().getBinding() != null) && (bfi.getBindingOperation().getBinding().getName() != null) && wsdl11XPointer.matchesBindingOperationFault( bfi.getFaultInfo().getFaultName().getNamespaceURI(), bfi.getBindingOperation().getBinding().getName().getLocalPart(), bfi.getBindingOperation().getName().getLocalPart(), bfi.getFaultInfo().getFaultName().getLocalPart()); }
public void handleMessage(Message message) throws Fault { Exchange ex = message.getExchange(); message.put(LocalConduit.DIRECT_DISPATCH, Boolean.TRUE); message.put(LocalTransportFactory.MESSAGE_INCLUDE_PROPERTIES, includes); BindingOperationInfo bop = ex.getBindingOperationInfo(); message.put(ObjectBinding.OPERATION, bop.getName()); message.put(ObjectBinding.BINDING, bop.getBinding().getName()); }