public static Inbound newInstance(final String messageContentType, final InputStream is) { return new Inbound(messageContentType, is); }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
/** * Creates a new Inbound Payload of the given content type, read from * the specified InputStream. The payloadContentType should be the * content-type from the inbound http request or response. * @param payloadContentType content-type from the inbound http request or response * @param is the InputStream from which the Payload should be read * @return the prepared Payload * @throws java.io.IOException */ public static Inbound newInstance(final String payloadContentType, final InputStream is) throws IOException { if (payloadContentType == null) { return EMPTY_PAYLOAD; } if (TextPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return TextPayloadImpl.Inbound.newInstance(payloadContentType, is); } else if (ZipPayloadImpl.Inbound.supportsContentType(payloadContentType)) { return ZipPayloadImpl.Inbound.newInstance(payloadContentType, is); } else { return null; } }
public static Inbound newInstance(final String messageContentType, final InputStream is) { return new Inbound(messageContentType, is); }
public static Inbound newInstance(final String messageContentType, final InputStream is) { return new Inbound(messageContentType, is); }