Examples of OperationHandler


Examples of com.dilanperera.rapidws.handlers.operation.OperationHandler

                // extract the SOAP Action from Content Header Data
                this.extractSOAPActionFromContentHeaderData(messageContext);
            }

            // get the operation handler
            OperationHandler operationHandler = this.getOperationHandler(messageContext);

          // get timestamp - start parsing
          long startParseTimestamp = System.nanoTime();

          // process the message, using the operation handler
            this.processMessage(messageContext, operationHandler);

          // get timestamp - end parsing
          long endParseTimestamp = System.nanoTime();

          // make performance log entry
          PerformanceLogger.Log(
              messageContext.getServiceName() + RapidWSMessageProcessor.SERVICE_OPERATION_SEPARATOR +
                  messageContext.getOperationName(),
              operationHandler.getClass().getName(),
              startParseTimestamp,
              endParseTimestamp);

          // NOTE: output of text removed from here, as content-type header needs to be sent first
          // however, the servlet has no way of knowing this, so it cannot set the header in advance.
View Full Code Here

Examples of com.dilanperera.rapidws.handlers.operation.OperationHandler

     * @throws UnavailableServiceException when a requested service is unavailable.
     */
    protected OperationHandler getOperationHandler(MessageContext messageContext)
            throws UnavailableServiceException
    {
        OperationHandler operationHandler = null;

        // get service mapping
        ServiceDataMap serviceDataMap = ServiceConfiguration.getServiceDataMap();

        // get the service and operation name
View Full Code Here

Examples of org.adfemg.datacontrol.xml.handler.OperationHandler

     * @inheritDoc
     */
    @Override
    public Collection<OperationHandler> createHandlers(final Operation annotation, final Method method,
                                                       final Object customizer) {
        OperationHandler handler = new OperationHandler() {
            /**
             * We add the XMLDCElement as first element to the List of arguments.
             * After that we add all the arguments from the map.
             */
            @Override
View Full Code Here

Examples of org.eclipse.rap.rwt.remote.OperationHandler

    ClientCanvasLCA lca = new ClientCanvasLCA();

    lca.renderInitialization( clientCanvas );

    RemoteObjectImpl remoteObject = RemoteObjectRegistry.getInstance().get( WidgetUtil.getId( clientCanvas ) );
    OperationHandler handler = remoteObject.getHandler();
    assertTrue( handler instanceof ClientCanvasOperator );
  }
View Full Code Here

Examples of org.eclipse.rap.rwt.remote.OperationHandler

  @Test
  public void testRenderInitializationSetsOperationHandler() throws IOException {
    String id = getId( composite );
    lca.renderInitialization( composite );

    OperationHandler handler = RemoteObjectRegistry.getInstance().get( id ).getHandler();
    assertTrue( handler instanceof RefreshCompositeOperationHandler );
  }
View Full Code Here

Examples of org.fcrepo.server.security.xacml.pep.ws.operations.OperationHandler

        //        // Obtain the service details
        //        ServiceDesc service = context.getService().getServiceDescription();
        //        // Obtain the operation details and message type
        //        OperationDesc operation = context.getOperation();
        // Obtain a class to handle our request
        OperationHandler operationHandler = getHandler(service, operation);

        // there must always be a handler.
        if (operationHandler == null) {
            logger.error("Missing handler for service/operation: " + service
                    + "/" + operation);
            throw CXFUtility
                    .getFault(new PEPException("Missing handler for service/operation: "
                            + service + "/" + operation));
        }

        RequestCtx reqCtx = null;

        // if we are on the request pathway, outboundProperty == false. True on
        // response pathway
        Boolean outboundProperty =
                (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
        try {
            if (outboundProperty) {
                reqCtx = operationHandler.handleResponse(context);
            } else {
                reqCtx = operationHandler.handleRequest(context);
            }
        } catch (OperationHandlerException ohe) {
            logger.error("Error handling operation: " + operation, ohe);
            throw CXFUtility
                    .getFault(new PEPException("Error handling operation: "
View Full Code Here

Examples of org.fcrepo.server.security.xacml.pep.ws.operations.OperationHandler

            }

            return null;
        }

        OperationHandler handler = handlers.get(operationName);
        if (handler == null) {
            if (logger.isDebugEnabled()) {
                logger.debug("Handler not found for: " + serviceName + "/"
                        + operationName);
            }
View Full Code Here

Examples of org.gatein.management.api.operation.OperationHandler

        }
    }

    private void executeHandlers(ManagedResource resource, final OperationContext operationContext, PathAddress address,
            String operationName, StepResultHandler<PageNavigation> stepResultHandler, PathTemplateFilter filter, boolean root) {
        OperationHandler handler = resource.getOperationHandler(address, operationName);
        if (handler != null && !root && address.accepts(filter)) {
            handler.execute(operationContext, stepResultHandler);
        } else {
            OperationHandler readResource = resource.getOperationHandler(address, OperationNames.READ_RESOURCE);
            BasicResultHandler readResourceResult = new BasicResultHandler();
            readResource.execute(new OperationContextDelegate(operationContext) {
                @Override
                public String getOperationName() {
                    return OperationNames.READ_RESOURCE;
                }
            }, readResourceResult);
View Full Code Here

Examples of org.gatein.management.api.operation.OperationHandler

        }
    }

    private void executeHandlers(ManagedResource resource, final OperationContext operationContext, PathAddress address,
            String operationName, StepResultHandler<PageNavigation> stepResultHandler, PathTemplateFilter filter, boolean root) {
        OperationHandler handler = resource.getOperationHandler(address, operationName);
        if (handler != null && !root && address.accepts(filter)) {
            handler.execute(operationContext, stepResultHandler);
        } else {
            OperationHandler readResource = resource.getOperationHandler(address, OperationNames.READ_RESOURCE);
            BasicResultHandler readResourceResult = new BasicResultHandler();
            readResource.execute(new OperationContextDelegate(operationContext) {
                @Override
                public String getOperationName() {
                    return OperationNames.READ_RESOURCE;
                }
            }, readResourceResult);
View Full Code Here

Examples of org.gatein.management.api.operation.OperationHandler

      if (root.getSubResource(address) == null)
      {
         throw new ResourceNotFoundException("Could not locate managed resource for address '" + address + "'");
      }

      OperationHandler operationHandler = root.getOperationHandler(address, operationName);
      if (operationHandler != null)
      {
         // Obtain binding provider given managed component.
         String componentName = (address.size() >= 1) ? address.get(0) : null;
         BindingProvider bindingProvider = managementService.getBindingProvider(componentName);

         // Execute operation for given registered operation handler
         BasicResultHandler resultHandler = new BasicResultHandler();
         operationHandler.execute(new OperationContextImpl(request, root, runtimeContext, bindingProvider), resultHandler);

         if (resultHandler.getFailureDescription() != null)
         {
            return new FailureResponse(resultHandler.getFailureDescription());
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.