Examples of RMException


Examples of org.jboss.ws.extensions.wsrm.api.RMException

   }

   public void validate()
   {
      if (this.identifier == null)
         throw new RMException("Identifier not set");
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

   }

   public void validate()
   {
      if (this.identifier == null)
         throw new RMException("Identifier must be set");
      if (this.messageNumber == 0)
         throw new RMException("MessageNumber must be set");
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

         String identifier = getRequiredTextContent(identifierElement, identifierQName);
         o.setIdentifier(identifier);
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to deserialize RM message", se);
      }
      catch (RuntimeException re)
      {
         throw new RMException("Unable to deserialize RM message", re);
      }
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

         QName identifierQName = wsrmConstants.getIdentifierQName();
         terminateSequenceResponseElement.addChildElement(identifierQName).setValue(o.getIdentifier());
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to serialize RM message", se);
      }
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

     
      // try to serialize SequenceAcknowledgement to message
      serialize(rmConstants.getSequenceAcknowledgementQName(), outMsgs, data, soapMessage, sequenceImpl);
     
      if ((outMsgs.size() != 0) && (data.size() == 0))
         throw new RMException("RM handler did not serialize WS-RM message to the payload");

      return true;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

      deserialize(rmConstants.getTerminateSequenceResponseQName(), soapMessage, messages, data);
     
      // TODO: implement SequenceFault deserialization
     
      if (data.size() == 0)
         throw new RMException("RM handler was not able to find WS-RM message in the payload");
     
      // propagate RM response context to higher layers
      msgContext.put(RMConstant.RESPONSE_CONTEXT, rmResponseContext);
      msgContext.setScope(RMConstant.RESPONSE_CONTEXT, Scope.APPLICATION);
     
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

            o.setAccept(accept);
         }
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to deserialize RM message", se);
      }
      catch (RuntimeException re)
      {
         throw new RMException("Unable to deserialize RM message", re);
      }
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

                  .setValue(o.getAccept().getAcksTo());
         }
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to serialize RM message", se);
      }
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

            o.setLastMsgNumber(lastMsgNumberValue);
         }
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to deserialize RM message", se);
      }
      catch (RuntimeException re)
      {
         throw new RMException("Unable to deserialize RM message", re);
      }
   }
View Full Code Here

Examples of org.jboss.ws.extensions.wsrm.api.RMException

            lastMsgNumberElement.setValue(String.valueOf(o.getLastMsgNumber()));
         }
      }
      catch (SOAPException se)
      {
         throw new RMException("Unable to serialize RM message", se);
      }
   }
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.