/** * This is used to acquire the content type for this part. This * is typically the type of content for a file part, as provided * by a MIME type from the HTTP "Content-Type" header. * * @return this returns the content type for the part object */ public ContentType getContentType() { return segment.getContentType(); }
/** * This is used to acquire the content type for this part. This * is typically the type of content for a file part, as provided * by a MIME type from the HTTP "Content-Type" header. * * @return this returns the content type for the part object */ public ContentType getContentType() { return segment.getContentType(); }
/** * This is used to acquire the content type for this part. This * is typically the type of content for a file part, as provided * by a MIME type from the HTTP "Content-Type" header. * * @return this returns the content type for the part object */ public ContentType getContentType() { return segment.getContentType(); }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param header this is the header associated with the body * * @return the boundary for a multipart upload body */ protected byte[] getBoundary(Segment header) { ContentType type = header.getContentType(); if(type != null) { String token = type.getParameter(BOUNDARY); if(token != null) { return token.getBytes(); } } return null; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param header this is the header associated with the body * * @return the boundary for a multipart upload body */ protected byte[] getBoundary(Segment header) { ContentType type = header.getContentType(); if(type != null) { String token = type.getParameter(BOUNDARY); if(token != null) { return token.getBytes(); } } return null; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the content type is that of a multipart body */ protected boolean isUpload(Segment segment) { ContentType type = segment.getContentType(); if(type != null) { String token = type.getPrimary(); if(token.equals(MULTIPART)) { return true; } } return false; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param header this is the header associated with the body * * @return the boundary for a multipart upload body */ protected byte[] getBoundary(Segment header) { ContentType type = header.getContentType(); if(type != null) { String token = type.getParameter(BOUNDARY); if(token != null) { return token.getBytes(); } } return null; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the content type is that of a multipart body */ protected boolean isUpload(Segment segment) { ContentType type = segment.getContentType(); if(type != null) { String token = type.getPrimary(); if(token.equals(MULTIPART)) { return true; } } return false; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the content type is that of a multipart body */ protected boolean isUpload(Segment segment) { ContentType type = segment.getContentType(); if(type != null) { String token = type.getPrimary(); if(token.equals(MULTIPART)) { return true; } } return false; }