public class HTTPMockServer extends Object
This server runs on Jetty and supports dynamic registration of request handlers mapped to specific paths. Incoming HTTP
requests are delegated to the configured SourceCallback, allowing Mule flows to simulate real HTTP interactions.
| Modifier and Type | Class and Description |
|---|---|
class |
HTTPMockServer.StubRemover |
| Constructor and Description |
|---|
HTTPMockServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
HTTPMockServer.StubRemover |
addHandlerFor(String path,
org.mule.runtime.extension.api.runtime.source.SourceCallback<?,?> callback) |
void |
invalidate() |
public void invalidate()
public HTTPMockServer.StubRemover addHandlerFor(String path, org.mule.runtime.extension.api.runtime.source.SourceCallback<?,?> callback)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.