Package org.jboss.soa.esb.message.body.content

Examples of org.jboss.soa.esb.message.body.content.InvalidPayloadException


    try
    {
      Object ret = super.get(ELEMENT_NAME);

      if (ret == null)
        throw new InvalidPayloadException();

      return (String) ret;
    }
    catch (ClassCastException ex)
    {
      throw new InvalidPayloadException(ex);
    }
  }
View Full Code Here


  private final void valid() throws InvalidPayloadException
  {
    String type = (String) super.get(Payload.CONTENT_TYPE);
   
    if (type == null)
      throw new InvalidPayloadException();
    else
    {
      if (!type.equals(Payload.BYTES_BODY))
        throw new InvalidPayloadException();
    }
  }
View Full Code Here

    try
    {
      Object ret = super.get(ELEMENT_NAME);

      if (ret == null)
        throw new InvalidPayloadException();

      return (Serializable) ret;
    }
    catch (ClassCastException ex)
    {
      // not serializable

      throw new InvalidPayloadException(ex);
    }
  }
View Full Code Here

    {
      return ((Boolean) get(name)).booleanValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return ((Byte) get(name)).byteValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return ((String) get(name)).getBytes();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return ((Float) get(name)).floatValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return ((Double) get(name)).doubleValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return (char) ((Byte) get(name)).byteValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

    {
      return ((Integer) get(name)).intValue();
    }
    catch (Exception ex)
    {
      throw new InvalidPayloadException();
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.message.body.content.InvalidPayloadException

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.