Class HttpAdminClient
- java.lang.Object
-
- com.github.tomakehurst.wiremock.client.HttpAdminClient
-
-
Constructor Summary
Constructors Constructor Description HttpAdminClient(java.lang.String host, int port)
HttpAdminClient(java.lang.String host, int port, java.lang.String urlPathPrefix)
HttpAdminClient(java.lang.String scheme, java.lang.String host, int port)
HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix)
HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader)
HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader, java.lang.String proxyHost, int proxyPort)
HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader, java.lang.String proxyHost, int proxyPort, ClientAuthenticator authenticator)
-
Method Summary
-
-
-
Constructor Detail
-
HttpAdminClient
public HttpAdminClient(java.lang.String scheme, java.lang.String host, int port)
-
HttpAdminClient
public HttpAdminClient(java.lang.String host, int port, java.lang.String urlPathPrefix)
-
HttpAdminClient
public HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix)
-
HttpAdminClient
public HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader)
-
HttpAdminClient
public HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader, java.lang.String proxyHost, int proxyPort)
-
HttpAdminClient
public HttpAdminClient(java.lang.String scheme, java.lang.String host, int port, java.lang.String urlPathPrefix, java.lang.String hostHeader, java.lang.String proxyHost, int proxyPort, ClientAuthenticator authenticator)
-
HttpAdminClient
public HttpAdminClient(java.lang.String host, int port)
-
-
Method Detail
-
addStubMapping
public void addStubMapping(StubMapping stubMapping)
- Specified by:
addStubMapping
in interfaceAdmin
-
editStubMapping
public void editStubMapping(StubMapping stubMapping)
- Specified by:
editStubMapping
in interfaceAdmin
-
removeStubMapping
public void removeStubMapping(StubMapping stubbMapping)
- Specified by:
removeStubMapping
in interfaceAdmin
-
removeStubMapping
public void removeStubMapping(java.util.UUID id)
- Specified by:
removeStubMapping
in interfaceAdmin
-
listAllStubMappings
public ListStubMappingsResult listAllStubMappings()
- Specified by:
listAllStubMappings
in interfaceAdmin
-
getStubMapping
public SingleStubMappingResult getStubMapping(java.util.UUID id)
- Specified by:
getStubMapping
in interfaceAdmin
-
saveMappings
public void saveMappings()
- Specified by:
saveMappings
in interfaceAdmin
-
resetRequests
public void resetRequests()
- Specified by:
resetRequests
in interfaceAdmin
-
resetScenarios
public void resetScenarios()
- Specified by:
resetScenarios
in interfaceAdmin
-
resetMappings
public void resetMappings()
- Specified by:
resetMappings
in interfaceAdmin
-
resetToDefaultMappings
public void resetToDefaultMappings()
- Specified by:
resetToDefaultMappings
in interfaceAdmin
-
getServeEvents
public GetServeEventsResult getServeEvents()
- Specified by:
getServeEvents
in interfaceAdmin
-
getServeEvents
public GetServeEventsResult getServeEvents(ServeEventQuery query)
- Specified by:
getServeEvents
in interfaceAdmin
-
getServedStub
public SingleServedStubResult getServedStub(java.util.UUID id)
- Specified by:
getServedStub
in interfaceAdmin
-
countRequestsMatching
public VerificationResult countRequestsMatching(RequestPattern requestPattern)
- Specified by:
countRequestsMatching
in interfaceAdmin
-
findRequestsMatching
public FindRequestsResult findRequestsMatching(RequestPattern requestPattern)
- Specified by:
findRequestsMatching
in interfaceAdmin
-
findUnmatchedRequests
public FindRequestsResult findUnmatchedRequests()
- Specified by:
findUnmatchedRequests
in interfaceAdmin
-
removeServeEvent
public void removeServeEvent(java.util.UUID eventId)
- Specified by:
removeServeEvent
in interfaceAdmin
-
removeServeEventsMatching
public FindServeEventsResult removeServeEventsMatching(RequestPattern requestPattern)
- Specified by:
removeServeEventsMatching
in interfaceAdmin
-
removeServeEventsForStubsMatchingMetadata
public FindServeEventsResult removeServeEventsForStubsMatchingMetadata(StringValuePattern metadataPattern)
- Specified by:
removeServeEventsForStubsMatchingMetadata
in interfaceAdmin
-
findNearMissesForUnmatchedRequests
public FindNearMissesResult findNearMissesForUnmatchedRequests()
- Specified by:
findNearMissesForUnmatchedRequests
in interfaceAdmin
-
getAllScenarios
public GetScenariosResult getAllScenarios()
- Specified by:
getAllScenarios
in interfaceAdmin
-
resetScenario
public void resetScenario(java.lang.String name)
- Specified by:
resetScenario
in interfaceAdmin
-
setScenarioState
public void setScenarioState(java.lang.String name, java.lang.String state)
- Specified by:
setScenarioState
in interfaceAdmin
-
findTopNearMissesFor
public FindNearMissesResult findTopNearMissesFor(LoggedRequest loggedRequest)
- Specified by:
findTopNearMissesFor
in interfaceAdmin
-
findTopNearMissesFor
public FindNearMissesResult findTopNearMissesFor(RequestPattern requestPattern)
- Specified by:
findTopNearMissesFor
in interfaceAdmin
-
updateGlobalSettings
public void updateGlobalSettings(GlobalSettings settings)
- Specified by:
updateGlobalSettings
in interfaceAdmin
-
snapshotRecord
public SnapshotRecordResult snapshotRecord()
- Specified by:
snapshotRecord
in interfaceAdmin
-
snapshotRecord
public SnapshotRecordResult snapshotRecord(RecordSpecBuilder spec)
- Specified by:
snapshotRecord
in interfaceAdmin
-
snapshotRecord
public SnapshotRecordResult snapshotRecord(RecordSpec spec)
- Specified by:
snapshotRecord
in interfaceAdmin
-
startRecording
public void startRecording(java.lang.String targetBaseUrl)
- Specified by:
startRecording
in interfaceAdmin
-
startRecording
public void startRecording(RecordSpec recordSpec)
- Specified by:
startRecording
in interfaceAdmin
-
startRecording
public void startRecording(RecordSpecBuilder recordSpec)
- Specified by:
startRecording
in interfaceAdmin
-
stopRecording
public SnapshotRecordResult stopRecording()
- Specified by:
stopRecording
in interfaceAdmin
-
getRecordingStatus
public RecordingStatusResult getRecordingStatus()
- Specified by:
getRecordingStatus
in interfaceAdmin
-
getOptions
public Options getOptions()
- Specified by:
getOptions
in interfaceAdmin
-
shutdownServer
public void shutdownServer()
- Specified by:
shutdownServer
in interfaceAdmin
-
findAllStubsByMetadata
public ListStubMappingsResult findAllStubsByMetadata(StringValuePattern pattern)
- Specified by:
findAllStubsByMetadata
in interfaceAdmin
-
removeStubsByMetadata
public void removeStubsByMetadata(StringValuePattern pattern)
- Specified by:
removeStubsByMetadata
in interfaceAdmin
-
importStubs
public void importStubs(StubImport stubImport)
- Specified by:
importStubs
in interfaceAdmin
-
getGlobalSettings
public GetGlobalSettingsResult getGlobalSettings()
- Specified by:
getGlobalSettings
in interfaceAdmin
-
port
public int port()
-
getJsonAssertOkAndReturnBody
protected java.lang.String getJsonAssertOkAndReturnBody(java.lang.String url)
-
-