Skip to content

Commit

Permalink
Remove HttpCore dependency, WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 10, 2024
1 parent a6f3a0e commit 2af16a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ public class Constants {
put("text/json", JsonPrettier.INSTANCE);
put(ContentType.TEXT_HTML, HtmlPrettier.INSTANCE);
}});

private Constants() {
throw new RuntimeException("No instances should exist for the class!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.epam.reportportal.formatting.http;

import javax.annotation.Nullable;

@SuppressWarnings("unused")
public class ContentType {

Expand Down Expand Up @@ -51,5 +53,15 @@ public class ContentType {
public static final String MULTIPART_DIGEST = "multipart/digest";
public static final String MULTIPART_PARALLEL = "multipart/parallel";

private ContentType() {
throw new RuntimeException("No instances should exist for the class!");
}

@Nullable
public static String parse(@Nullable String contentType) {
if (contentType == null || contentType.trim().isEmpty()) {
return null;
}
return null;
}
}

0 comments on commit 2af16a6

Please sign in to comment.