Examples of invoke()


Examples of javax.ws.rs.client.Invocation.invoke()

  public void shouldCheckForH2G2WithInvocation() {

    Client client = ClientBuilder.newClient();
    WebTarget target = client.target("http://localhost:8282/03/book");
    Invocation invocation = target.request(MediaType.TEXT_PLAIN).buildGet();
    Response response = invocation.invoke();
    String entity = response.readEntity(String.class);

    assertEquals("H2G2", entity);
    assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
    assertEquals("H2G2 is 4 characters", 4, entity.length());
View Full Code Here

Examples of javax.xml.rpc.Call.invoke()

      Call call = service.createCall(new QName(nsURI, "BasicSecuredPort"), "getContactInfo");
      call.setTargetEndpointAddress(targetAddress);

      try
      {
         call.invoke(new Object[] { "mafia" });
         fail("Security exception expected");
      }
      catch (RemoteException ignore)
      {
         // ignore expected exception
View Full Code Here

Examples of javax.xml.ws.Dispatch.invoke()

       
        // The element that is sent should be <getPriceWithAction>
        // so it will resolve to the getPriceWithAction operation
        // defined in the WSDL.
        JAXBElement<GetPriceType> getPrice = of.createGetPriceWithAction(gpt);
        JAXBElement<GetPriceResponseType> getPriceResponse = (JAXBElement<GetPriceResponseType>) dispatch.invoke(getPrice);
       
        GetPriceResponseType value = getPriceResponse.getValue();
        assertNotNull("The response was null", value);
       
        float price = value.getPrice();
View Full Code Here

Examples of jmx.JEApplicationMBean.invoke()

            DynamicMBean mbean = new JEApplicationMBean(environmentDir);
            validateGetters(mbean, 5);
            validateOperations(mbean, 1, false, null, null); // don't invoke
           
            /* Open the environment. */
            mbean.invoke(JEApplicationMBean.OP_OPEN, null, null);
                        
            validateGetters(mbean, 7 );
            validateOperations(mbean, 8, true, null, null);

            /*
 
View Full Code Here

Examples of jodd.madvoc.filter.ActionFilter.invoke()

    if (execState == 0) {
      // filters
      if (filterIndex < totalFilters) {
        ActionFilter filter = actionConfig.filters[filterIndex];
        filterIndex++;
        return filter.invoke(this);
      }
    }

    execState = 1;
View Full Code Here

Examples of jodd.madvoc.interceptor.ActionInterceptor.invoke()

  protected Object invokeAction() throws Exception {
    // interceptors
    if (interceptorIndex < totalInterceptors) {
      ActionInterceptor interceptor = actionConfig.interceptors[interceptorIndex];
      interceptorIndex++;
      return interceptor.invoke(this);
    }

    // action
    execState = 2;
View Full Code Here

Examples of jodd.petite.meta.PetiteInitMethod.invoke()

      }
      if (method.getParameterTypes().length > 0) {
        throw new PetiteException("Arguments are not allowed for Petite init method: " + type.getName() + '#' + method.getName());
      }
      int order = petiteInitMethod.order();
      list.add(new InitMethodPoint(method, order, petiteInitMethod.invoke()));
    }

    InitMethodPoint[] methods;

    if (list.isEmpty()) {
View Full Code Here

Examples of jst.ScriptRuntime.invoke()

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        try {
            String scriptName = getScriptName(servletRequest);
            ScriptRuntime runtime = initializeScript( scriptName, (HttpServletRequest)servletRequest, (HttpServletResponse)servletResponse );
            writeResponse( servletResponse, runtime.invoke() );
        } catch( TemplateException ex ) {
            writeScriptError( (HttpServletRequest)servletRequest, (HttpServletResponse)servletResponse, ex );
        }
    }
View Full Code Here

Examples of juzu.impl.bridge.spi.portlet.PortletActionBridge.invoke()

  }

  public void processAction(ActionRequest req, ActionResponse resp) throws PortletException, IOException {
    try {
      PortletActionBridge requestBridge = new PortletActionBridge(bridge, req, resp, config);
      requestBridge.invoke();
      requestBridge.send();
    }
    catch (Throwable e) {
      rethrow(e);
    }
View Full Code Here

Examples of juzu.impl.bridge.spi.portlet.PortletEventBridge.invoke()

            request,
            response,
            config,
            target,
            request.getParameterMap());
        requestBridge.invoke();
        requestBridge.send();
      }
      catch (Throwable e) {
        rethrow(e);
      }
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.