Examples of method()


Examples of ariba.ui.aribaweb.core.AWRequest.method()

    public AWResponseGenerating postsAction ()
    {
        AWRequest request = request();
        AWResponse response = application().createResponse(request());
        response.setContentType(AWContentType.TextXml);
        if ("GET".equals(request.method())) {
            String pi = request.formValueForKey("pi");
            List posts = PostService.getPosts();
            if (pi != null) {
                int postIndex = Integer.parseInt(pi);
                posts = ListUtil.list(posts.get(postIndex));
View Full Code Here

Examples of bear.annotations.Project.method()

        public ProjectInfo(Class<? extends BearProject> project, String path, GlobalContext global) {
            Project projectAnnotation = project.getAnnotation(Project.class);

            shortName = projectAnnotation.shortName();
            name = project.getSimpleName();
            defaultMethod = projectAnnotation.method();
            methods = new ArrayList<String>();
            shells = new ArrayList<String>();
            this.path = path;

            Set<String> temp = new LinkedHashSet<String>();
View Full Code Here

Examples of cn.com.annotations.Form.method()

                // 生成form标签
                FormElementTag formElement = new FormElementTag();
                formElement.setAction(form.action());
                formElement.setEnctype(form.enctype());
                formElement.setMethod(form.method().name());
                formElement.setId(form.id());
                formElement.setCssClass(form.cssClass());
                topElement = formElement;
            } else {
View Full Code Here

Examples of com.amazonaws.hal.Link.method()

            throw e.getTargetException();
        }

        Link link;
        if ((link = method.getAnnotation(Link.class)) != null) {
            switch (link.method()) {
            case GET:
                if (List.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkList(halResource, link.relation(),
                                           (Class) getCollectionType(method.getGenericReturnType(), 0, ResourceInfo.class),
View Full Code Here

Examples of com.dietsodasoftware.yail.xmlrpc.client.annotations.InfusionsoftRpc.method()

        final InfusionsoftRpc rpcAnnotation = AnnotationUtils.findAnnotation(this.getClass(), InfusionsoftRpc.class);
        if(rpcAnnotation == null){
            throw new IllegalArgumentException("Must provide the return XML RPC service and method using annotation @InfusionsoftRpc on class " + this.getClass().getName());
        }
        rpcName = buildRpcName(rpcAnnotation.service(), rpcAnnotation.method());

        synchronized (this.getClass()){
            Method validatorMethod = validatorMethods.get(this.getClass());
            if(validatorMethod == null){
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.HttpRequest.method()

        // jetty client always adds the user agent header
        // todo should there be a default?
        jettyRequest.getHeaders().remove(HttpHeader.USER_AGENT);

        jettyRequest.method(finalRequest.getMethod());

        for (Entry<String, String> entry : finalRequest.getHeaders().entries()) {
            jettyRequest.header(entry.getKey(), entry.getValue());
        }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.api.Request.method()

                conversation.setAttribute(ATTRIBUTE, redirects);

            Request redirect = client.copyRequest(httpRequest, location);

            // Use given method
            redirect.method(method);

            redirect.onRequestBegin(new Request.BeginListener()
            {
                @Override
                public void onBegin(Request redirect)
View Full Code Here

Examples of com.fasterxml.jackson.module.jsonSchema.annotation.Link.method()

            for(int i = 0; i < links.length; i++) {
                Link link = links[i];
                linkDescriptionObjects[i] = new LinkDescriptionObject()
                    .setHref(pathStart + link.href())
                    .setRel(link.rel())
                    .setMethod(ignoreDefaults && "GET".equals(link.method()) ? null : link.method())
                    .setEnctype(ignoreDefaults && "application/json".equals(link.enctype()) ? null : link.enctype())
                    .setTargetSchema(fetchSchema(link.targetSchema()))
                    .setSchema(fetchSchema(link.schema()))
                    .setMediaType(ignoreDefaults && "application/json".equals(link.mediaType()) ? null : link.mediaType())
                    .setTitle(link.title());
View Full Code Here

Examples of com.github.kristofa.test.http.HttpRequestImpl.method()

    @Test
    public void testTracingTrue() throws ClientProtocolException, IOException, UnsatisfiedExpectationException {
        when(clientTracer.startNewSpan(PATH)).thenReturn(spanId);

        final HttpRequestImpl request = new HttpRequestImpl();
        request.method(Method.GET).path(FULL_PATH)
            .httpMessageHeader(BraveHttpHeaders.TraceId.getName(), Long.toString(TRACE_ID, 16))
            .httpMessageHeader(BraveHttpHeaders.SpanId.getName(), Long.toString(SPAN_ID, 16))
            .httpMessageHeader(BraveHttpHeaders.Sampled.getName(), "true");
        final HttpResponseImpl response = new HttpResponseImpl(200, null, null);
        responseProvider.set(request, response);
View Full Code Here

Examples of com.google.appengine.api.labs.taskqueue.TaskOptions.method()

    TaskOptions to = TaskOptions.Builder.url(CONN_URL);
    for (String k : params.keySet()) {
      String val = params.get(k);
      to = to.param(k, val);
    }
    to = to.method(Method.POST);
    // to = to.taskName("task" + INIT + "count" + (-1));
    tq.add(to);
    // System.out.println("TASK_ADDED");
    new NewAccess().addTaskToQueue(params);
  }
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.