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
Conflicts:
	components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/javabody/HttpJavaBodyTest.java
  • Loading branch information
davsclaus committed Nov 12, 2015
1 parent ec4a48d commit 1b1ccbc
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 @@ -26,7 +26,6 @@
import org.apache.camel.component.http.HttpComponent;
import org.apache.camel.component.jetty.BaseJettyTest;
import org.apache.camel.component.jetty.JettyHttpComponent;
import org.junit.Ignore;
import org.junit.Test;

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

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

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

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

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

0 comments on commit 1b1ccbc

Please sign in to comment.