Package org.jboss.errai.bus.client.framework

Examples of org.jboss.errai.bus.client.framework.MarshalledMessage


    stream.write(']');
    stream.close();
  }

  protected void sendDisconnectWithReason(OutputStream stream, final String reason) throws IOException {
    writeToOutputStream(stream, new MarshalledMessage() {
      public String getSubject() {
        return "ClientBus";
      }

      public Object getMessage() {
View Full Code Here


    });
  }


  protected void sendDisconnectDueToSessionExpiry(OutputStream stream) throws IOException {
    writeToOutputStream(stream, new MarshalledMessage() {
      public String getSubject() {
        return "ClientBus";
      }

      public Object getMessage() {
View Full Code Here

      httpServletResponse.addHeader("Payload-Size", "1");
      httpServletResponse.setContentType("application/json");

      stream.write('[');

      writeToOutputStream(stream, new MarshalledMessage() {
        public String getSubject() {
          return "ClientBusErrors";
        }

        public Object getMessage() {
View Full Code Here

        stream.write(']');

    }

    protected void sendDisconnectWithReason(OutputStream stream, final String reason) throws IOException {
        writeToOutputStream(stream, new MarshalledMessage() {
            public String getSubject() {
                return "ClientBus";
            }

            public Object getMessage() {
View Full Code Here

        stream.write('}');

    }

    protected void sendDisconnectWithReason(OutputStream stream, final String reason) throws IOException {
        writeToOutputStream(stream, new MarshalledMessage() {
            public String getSubject() {
                return "ClientBus";
            }

            public Object getMessage() {
View Full Code Here

            httpServletResponse.setContentType("application/json");
            OutputStream stream = httpServletResponse.getOutputStream();

            stream.write('[');

            writeToOutputStream(stream, new MarshalledMessage() {
                public String getSubject() {
                    return "ClientBusErrors";
                }

                public Object getMessage() {
View Full Code Here

        StringBuilder sb = new StringBuilder();

        sb.append('[');

        writeToOutputStream(sb, new MarshalledMessage() {
            public String getSubject() {
                return "ClientBusErrors";
            }

            public Object getMessage() {
                StringBuilder b = new StringBuilder("{ErrorMessage:\"").append(CONFIG_PROBLEM_TEXT).append("\",AdditionalDetails:\"");
                return b.append("\"}").toString();
            }
        });

        sb.append(',');

        writeToOutputStream(sb, new MarshalledMessage() {
            public String getSubject() {
                return "ClientBus";
            }

            public Object getMessage() {
View Full Code Here

        checkSession();

        if (lock.tryAcquire()) {
            try {
                MarshalledMessage m = null;

//            if (lock.tryAcquire(0, TimeUnit.SECONDS)) {
//                try {
                if (wait) {
                    m = queue.poll(45, TimeUnit.SECONDS);
View Full Code Here

        stream.write(']');

    }

    protected void sendDisconnectWithReason(OutputStream stream, final String reason) throws IOException {
        writeToOutputStream(stream, new MarshalledMessage() {
            public String getSubject() {
                return "ClientBus";
            }

            public Object getMessage() {
View Full Code Here

            httpServletResponse.setContentType("application/json");
            OutputStream stream = httpServletResponse.getOutputStream();

            stream.write('[');

            writeToOutputStream(stream, new MarshalledMessage() {
                public String getSubject() {
                    return "ClientBusErrors";
                }

                public Object getMessage() {
View Full Code Here

TOP

Related Classes of org.jboss.errai.bus.client.framework.MarshalledMessage

Copyright © 2018 www.massapicom. 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.