Examples of Responder


Examples of org.apache.james.imap.api.process.ImapProcessor.Responder

        expectations.allowing(mailboxManagerStub).getMailbox(expectations.with(Expectations.any(MailboxPath.class)), expectations.with(Expectations.any(MailboxSession.class)));
        expectations.will(Expectations.returnValue(messageManagerStub));

        mockery.checking(expectations);

        final Responder responderMock = mockery.mock(Responder.class);
        mockery.checking(new Expectations() {
            {
                oneOf(responderMock).respond(with(new StatusResponseTypeMatcher(StatusResponse.Type.BAD)));
            }
        });
View Full Code Here

Examples of org.apache.james.imap.api.process.ImapProcessor.Responder

        expectations.allowing(mailboxManagerStub).getMailbox(expectations.with(Expectations.any(MailboxPath.class)), expectations.with(Expectations.any(MailboxSession.class)));
        expectations.will(Expectations.returnValue(messageManagerStub));

        mockery.checking(expectations);

        final Responder responderMock = mockery.mock(Responder.class);
        mockery.checking(new Expectations() {
            {
                oneOf(responderMock).respond(with(new StatusResponseTypeMatcher(StatusResponse.Type.NO)));
            }
        });
View Full Code Here

Examples of org.apache.james.imap.api.process.ImapProcessor.Responder

        expectations.allowing(mailboxManagerStub).getMailbox(expectations.with(Expectations.any(MailboxPath.class)), expectations.with(Expectations.any(MailboxSession.class)));
        expectations.will(Expectations.returnValue(messageManagerStub));

        mockery.checking(expectations);

        final Responder responderMock = mockery.mock(Responder.class);
        mockery.checking(new Expectations() {
            {
                oneOf(responderMock).respond(with(new StatusResponseTypeMatcher(StatusResponse.Type.NO)));
            }
        });
View Full Code Here

Examples of org.apache.james.imap.api.process.ImapProcessor.Responder

        expectations.allowing(mailboxManagerStub).getMailbox(expectations.with(Expectations.any(MailboxPath.class)), expectations.with(Expectations.any(MailboxSession.class)));
        expectations.will(Expectations.throwException(new MailboxNotFoundException(MAILBOX_NAME)));

        mockery.checking(expectations);

        final Responder responderMock = mockery.mock(Responder.class);
        mockery.checking(new Expectations() {
            {
                oneOf(responderMock).respond(with(new StatusResponseTypeMatcher(StatusResponse.Type.NO)));
            }
        });
View Full Code Here

Examples of org.apache.james.imap.api.process.ImapProcessor.Responder

        expectations.allowing(metaDataStub).getACL();
        expectations.will(Expectations.returnValue(acl));

        mockery.checking(expectations);

        final Responder responderMock = mockery.mock(Responder.class);
        mockery.checking(new Expectations() {
            {
                oneOf(responderMock).respond(with(new StatusResponseTypeMatcher(StatusResponse.Type.OK)));
            }
        });
View Full Code Here

Examples of org.megatome.frame2.event.Responder

              event.setResponse(listIndex, marshalledResult);
            } else if (fwd.isResponderType()) {
              // create responder
              String type = fwd.getPath();
              Responder responder = (Responder) Class.forName(
                  type).newInstance();
              Object response = responder
                  .respond(getContextWrapper());

              if (response instanceof org.w3c.dom.Element) {
                event
                    .setResponse(listIndex,
View Full Code Here

Examples of org.serviceconnector.net.res.Responder

    ListenerConfiguration listenerConfig = new ListenerConfiguration(SCSessionServer.class.getSimpleName());
    listenerConfig.setConnectionType(this.connectionType.getValue());
    listenerConfig.setNetworkInterfaces(nics);
    listenerConfig.setPort(this.listenerPort);

    responder = new Responder(listenerConfig);
    try {
      responder.create();
      responder.startListenAsync();
    } catch (Exception ex) {
      this.listening = false;
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.