public class AbstractHttpRequestTestCase extends FunctionalTestCase
Modifier and Type | Field and Description |
---|---|
protected String |
body |
static String |
DEFAULT_RESPONSE |
protected com.google.common.collect.Multimap<String,String> |
headers |
DynamicPort |
httpPort |
DynamicPort |
httpsPort |
protected String |
method |
protected org.eclipse.jetty.server.Server |
server |
protected String |
uri |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
AbstractHttpRequestTestCase() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jetty.server.handler.AbstractHandler |
createHandler(org.eclipse.jetty.server.Server server) |
protected org.eclipse.jetty.server.Server |
createServer() |
protected boolean |
enableHttps() |
protected void |
extractBaseRequestParts(org.eclipse.jetty.server.Request baseRequest) |
protected void |
extractHeadersFromBaseRequest(org.eclipse.jetty.server.Request baseRequest) |
String |
getFirstReceivedHeader(String headerName) |
protected void |
handleRequest(org.eclipse.jetty.server.Request baseRequest,
HttpServletRequest request,
HttpServletResponse response) |
void |
startServer() |
void |
stopServer() |
protected void |
writeResponse(HttpServletResponse response) |
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigFile, getConfigFiles, getConfigResources, getFlowConstruct, getFunctionalTestComponent, getSubFlow, loadResource, loadResourceAsString, lookupFlowConstruct, runFlow, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public DynamicPort httpPort
public DynamicPort httpsPort
public static final String DEFAULT_RESPONSE
protected org.eclipse.jetty.server.Server server
protected String method
protected String uri
protected String body
protected org.eclipse.jetty.server.Server createServer()
protected boolean enableHttps()
protected org.eclipse.jetty.server.handler.AbstractHandler createHandler(org.eclipse.jetty.server.Server server)
protected void handleRequest(org.eclipse.jetty.server.Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException
IOException
protected void extractBaseRequestParts(org.eclipse.jetty.server.Request baseRequest) throws IOException
IOException
protected void extractHeadersFromBaseRequest(org.eclipse.jetty.server.Request baseRequest)
protected void writeResponse(HttpServletResponse response) throws IOException
IOException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.