Examples of RequestModel


Examples of com.amazonaws.resources.internal.model.RequestModel

        convenientMethods.add(convenientMethod);
    }

    @Override
    public RequestModel build() {
        return new RequestModel(method, clientRequestType, clientResponseType,
                identifierMappings, attributeMappings, parameterMappings,
                constantMappings, convenientMethods, tokenPath, limitPath);
    }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.network.models.RequestModel

    };
  private RequestModel rm;
 
  @Before
  public void setUp() {
    rm = new RequestModel();
  }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.network.models.RequestModel

      cannedResponse.setBody("");
    }

    public void handle(Request request, Response response) {
      try {
        RequestModel rm = new RequestModel();
        rm.setBody(request.getContent());
       
        for (String key : request.getQuery().keySet()) {
          rm.addQueryData(key, request.getQuery().get(key));
        }
       
        String cookies = "";
        boolean firstCookie = true;
        for (Cookie cookie : request.getCookies()) {
          if (!firstCookie) {
            cookies += "; ";
          }
          cookies += cookie.getName() + "=" + cookie.getValue();
          firstCookie = false;
        }
        rm.addHeader("Cookie", cookies);
        rm.setHttpMethod(HttpMethod.valueOf(request.getMethod().toUpperCase()));
       
        //TODO finish building RequestModel
       
        lastReceived = rm;
       
View Full Code Here

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel

       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(DependentBean.OK);
       
View Full Code Here

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel

       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(AppScopedBean.OK);
       
View Full Code Here

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel

       
        startContainer(beanClasses, beanXmls);       

        Bean<RequestModel> bean = (Bean<RequestModel>)getBeanManager().getBeans("rproduce").iterator().next();
        CreationalContext<RequestModel> cc = getBeanManager().createCreationalContext(bean);
        RequestModel model = (RequestModel) getBeanManager().getReference(bean, RequestModel.class, cc);
        System.out.println(model.getID());
       
        shutDownContainer();
       
        Assert.assertTrue(AppScopedBean.OK);
       
View Full Code Here

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel

        RequestModelProducer.producerGotDestroyed = false;
        DependentModelProducer.producerGotDestroyed = false;
        DependentModelProducer.disposerCount = 0;

        RequestModel model = getInstance(RequestModel.class);

        Assert.assertEquals(0, model.getID());

        getLifecycle().getContextService().endContext(RequestScoped.class, null);

        Assert.assertFalse(DependentModelProducer.producerGotDestroyed);
        Assert.assertFalse(RequestModelProducer.producerGotDestroyed);
View Full Code Here

Examples of org.apache.webbeans.newtests.disposes.common.RequestModel

    public static boolean producerGotDestroyed = false;

    @Produces @RequestScoped @Named("rproduce")
    public RequestModel rproduce()
    {
        RequestModel rmodel =  new RequestModel();
        rmodel.setDisposeModel(dependentModel);

        System.out.println("produced RequestModel=" + rmodel);
        return rmodel;
    }
View Full Code Here

Examples of org.carrot2.webapp.model.RequestModel

        else
        {
            requestParameters.put(WebappConfig.QUERY_PARAM, query.trim());
        }

        final RequestModel requestModel;
        try
        {
            // Build model for this request
            requestModel = new RequestModel(webappConfig);
            requestModel.modern = UserAgentUtils.isModernBrowser(request);
           
            // Request type is normally bound to the model, but we need to know
            // the type before binding to choose the unknown values resolution strategy
            final String requestType = (String)requestParameters.get(WebappConfig.TYPE_PARAM);
           
            final AttributeBinder.AttributeBinderActionBind attributeBinderActionBind =
                new AttributeBinder.AttributeBinderActionBind(
                    requestParameters,
                    true,
                    AttributeBinder.AttributeTransformerFromString.INSTANCE,
                    RequestType.CARROT2DOCUMENTS.name().equals(requestType) ?
                        unknownToDefaultTransformerWithMaxResults :
                        unknownToDefaultTransformer);
            AttributeBinder.bind(requestModel,
                new AttributeBinder.IAttributeBinderAction []
                {
                    attributeBinderActionBind
                }, Input.class);
            requestModel.afterParametersBound(attributeBinderActionBind.remainingValues,
                extractCookies(request));
        }
        catch (Exception e)
        {
            logger.info("Skipping, could not map/bind request model attributes: "
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.