Examples of message()


Examples of com.sun.xml.ws.wsdl.writer.document.ParamType.message()

    protected void generateInputMessage(Operation operation, JavaMethodImpl method) {
        ParamType paramType = operation.input();
        extension.addOperationInputExtension(paramType, method);
//        paramType.message(method.getOperation().getName());
        paramType.message(new QName(model.getTargetNamespace(), method.getRequestMessageName()));
    }

    protected void generateOutputMessage(Operation operation, JavaMethodImpl method) {
        ParamType paramType = operation.output();
        extension.addOperationOutputExtension(paramType, method);
View Full Code Here

Examples of com.sun.xml.ws.wsdl.writer.document.soap.Header.message()

    protected void generateSOAPHeaders(TypedXmlWriter writer, List<ParameterImpl> parameters, QName message) {

        for (ParameterImpl headerParam : parameters) {
            Header header = writer._element(Header.class);
            header.message(message);
            header.part(headerParam.getPartName());
            header.use(LITERAL);
        }
    }
View Full Code Here

Examples of com.wordnik.swagger.model.ResponseMessage.message()

    returnType = swaggerGlobalSettings.getAlternateTypeProvider().alternateFor(returnType);
    if (!Void.class.equals(returnType.getErasedType()) && !Void.TYPE.equals(returnType.getErasedType())) {
      ResponseMessage responseMessage = byStatusCode.get(200);
      String message = null;
      if (responseMessage != null) {
        message = coalese(responseMessage.message(), HttpStatus.OK.getReasonPhrase());
      }
      String simpleName = ResolvedTypes.typeName(returnType);
      ResponseMessage responseWithModel = new ResponseMessage(200, message, toOption(simpleName));
      byStatusCode.put(200, responseWithModel);
    }
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.common.NotificationMessage.message()

//        tester.assertInfoMessages("You have successfully registered for access to this application.");
        List<Serializable> actualMessages = tester.getMessages(FeedbackMessage.INFO);
        assertEquals(1, actualMessages.size());
        assertEquals(NotificationMessage.class, actualMessages.get(0).getClass());
        NotificationMessage actualMessage = (NotificationMessage) actualMessages.get(0);
        assertEquals(expectedMessage, actualMessage.message().getObject());
    }

    private Answer<User> createAnswerThatJustReturnPassedUser() {
        return new Answer<User>() {
            public User answer(InvocationOnMock invocation) throws Throwable {
View Full Code Here

Examples of de.danet.an.workflow.api.PrioritizedMessage.message()

            } else if (s.priority() == PrioritizedMessage.Priority.ERROR) {
                severity = FacesMessage.SEVERITY_ERROR;
            } else if (s.priority() == PrioritizedMessage.Priority.FATAL) {
                severity = FacesMessage.SEVERITY_FATAL;
            }
            String text = s.message(JSFUtil.activeLocale());
            FacesMessage msg = new FacesMessage (severity, text, text);
            FacesContext.getCurrentInstance().addMessage(null, msg);
        }
    }
   
View Full Code Here

Examples of etch.bindings.java.support.Mailbox.message()

      //Log.report( "MailboxManager.recv", "msg", msg, "mb", mb );
      if (mb != null)
      {
        try
        {
          return mb.message( sender, msg );
        }
        catch ( InterruptedException e )
        {
          // timeout or mailbox closed - fall through
        }
View Full Code Here

Examples of javax.validation.constraints.Max.message()

        new TestResourceBundleLocator()
    );
    MessageInterpolator.Context messageInterpolatorContext = createMessageInterpolatorContext( constraintDescriptor );

    String expected = "{replace.in.default.bundle2}";
    String actual = interpolator.interpolate( max.message(), messageInterpolatorContext );
    assertEquals(
        actual, expected, "Within default bundle replacement parameter evaluation should not be recursive!"
    );
  }
View Full Code Here

Examples of javax.validation.constraints.NotNull.message()

                                // message
                                "may not be null",

                                // messageTemplate
                                annotation.message(),

                                // rootBean
                                invocationContext.getProxy(),

                                // leafBean (the object the method is executed on)
View Full Code Here

Examples of kafka.message.MessageAndMetadata.message()

    }

    MessageAndMetadata fetchedMsg =
      testUtil.getNextMessageFromConsumer(TestConstants.CUSTOM_TOPIC);

    assertEquals(msg, new String((byte[]) fetchedMsg.message(), "UTF-8"));
    assertEquals(TestConstants.CUSTOM_KEY,
      new String((byte[]) fetchedMsg.key(), "UTF-8"));

  }
View Full Code Here

Examples of kafka.message.MessageAndOffset.message()

    public static boolean verifyMessage(String key, String message, KafkaTestBroker broker, SimpleConsumer simpleConsumer) {
        long lastMessageOffset = KafkaUtils.getOffset(simpleConsumer, TestUtils.TOPIC, 0, OffsetRequest.LatestTime()) - 1;
        ByteBufferMessageSet messageAndOffsets = KafkaUtils.fetchMessages(TestUtils.getKafkaConfig(broker), simpleConsumer,
                new Partition(Broker.fromString(broker.getBrokerConnectionString()), 0), lastMessageOffset);
        MessageAndOffset messageAndOffset = messageAndOffsets.iterator().next();
        Message kafkaMessage = messageAndOffset.message();
        ByteBuffer messageKeyBuffer = kafkaMessage.key();
        String keyString = null;
        String messageString = new String(Utils.toByteArray(kafkaMessage.payload()));
        if (messageKeyBuffer != null) {
            keyString = new String(Utils.toByteArray(messageKeyBuffer));
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.