Skip to content

Commit

Permalink
CAMEL-9309: Make it easier to turn on|off java transport over http
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Nov 12, 2015
1 parent d1b4e08 commit 0afcf72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ protected void service(final HttpServletRequest request, final HttpServletRespon
// we do not support java serialized objects unless explicit enabled
String contentType = request.getContentType();
if (HttpConstants.CONTENT_TYPE_JAVA_SERIALIZED_OBJECT.equals(contentType) && !consumer.getEndpoint().getComponent().isAllowJavaSerializedObject()) {
System.out.println("415 miser !!!");
response.sendError(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.camel.http.common.HttpCommonComponent;
import org.apache.camel.http.common.HttpConstants;
import org.apache.camel.http.common.HttpOperationFailedException;
import org.junit.Ignore;
import org.junit.Test;

/**
Expand All @@ -39,7 +38,6 @@ public boolean isUseRouteBuilder() {
}

@Test
@Ignore
public void testHttpSendJavaBodyAndReceiveString() throws Exception {
HttpCommonComponent jetty = context.getComponent("jetty", HttpCommonComponent.class);
jetty.setAllowJavaSerializedObject(true);
Expand Down Expand Up @@ -77,7 +75,6 @@ public void process(Exchange exchange) throws Exception {
}

@Test
@Ignore
public void testHttpSendJavaBodyAndReceiveJavaBody() throws Exception {
HttpCommonComponent jetty = context.getComponent("jetty", HttpCommonComponent.class);
jetty.setAllowJavaSerializedObject(true);
Expand Down Expand Up @@ -116,7 +113,6 @@ public void process(Exchange exchange) throws Exception {
}

@Test
@Ignore
public void testHttpSendStringAndReceiveJavaBody() throws Exception {
HttpCommonComponent jetty = context.getComponent("jetty", HttpCommonComponent.class);
jetty.setAllowJavaSerializedObject(true);
Expand Down Expand Up @@ -187,7 +183,6 @@ public void process(Exchange exchange) throws Exception {
}

@Test
@Ignore
public void testNotAllowed() throws Exception {
HttpCommonComponent jetty = context.getComponent("jetty", HttpCommonComponent.class);
jetty.setAllowJavaSerializedObject(false);
Expand Down

0 comments on commit 0afcf72

Please # to comment.