public class WebSocketMetadataClient extends Object implements MetadataApi
| Constructor and Description |
|---|
WebSocketMetadataClient(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(javax.websocket.CloseReason reason) |
void |
onError(Throwable t) |
void |
onMessage(Response response) |
void |
sendBinary(byte[] attachment) |
void |
sendHeader(String repoUrl,
String rev,
String branch,
String buildId) |
void |
sendMetadata(String path,
int location,
String mimeType) |
void |
sendStackTrace(String path,
int location,
String stackTrace) |
void |
sendTestCaseResult(String path,
int location,
Status status) |
void |
sendTestStepResult(String path,
int location,
Status status) |
void |
waitForReplies(int timeoutMillis) |
public WebSocketMetadataClient(URI uri) throws URISyntaxException, IOException, javax.websocket.DeploymentException
URISyntaxExceptionIOExceptionjavax.websocket.DeploymentExceptionpublic void sendHeader(String repoUrl, String rev, String branch, String buildId)
sendHeader in interface MetadataApipublic void sendTestStepResult(String path, int location, Status status)
sendTestStepResult in interface MetadataApipublic void sendTestCaseResult(String path, int location, Status status)
sendTestCaseResult in interface MetadataApipublic void sendStackTrace(String path, int location, String stackTrace)
sendStackTrace in interface MetadataApipublic void sendMetadata(String path, int location, String mimeType)
sendMetadata in interface MetadataApipublic void sendBinary(byte[] attachment)
sendBinary in interface MetadataApipublic void onMessage(Response response)
public void waitForReplies(int timeoutMillis)
throws InterruptedException
waitForReplies in interface MetadataApiInterruptedExceptionpublic void onError(Throwable t)
public void onClose(javax.websocket.CloseReason reason)
Copyright © 2014. All Rights Reserved.