method2testcases stringlengths 118 6.63k |
|---|
### Question:
GsonFactory { public static Gson create() { GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.excludeFieldsWithoutExposeAnnotation(); gsonBuilder.disableHtmlEscaping(); gsonBuilder.registerTypeAdapterFactory(new ReportLookupTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new InputCont... |
### Question:
ReportLookup extends ResourceLookup { @Override public String getResourceType() { return "reportUnit"; } ReportLookup(); @Override String getResourceType(); boolean alwaysPromptControls(); @Override String toString(); }### Answer:
@Test public void shouldAlwaysReturnReportUnitUriAsType() { ReportLookup r... |
### Question:
ReportParameter { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ReportParameter that = (ReportParameter) o; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (value != null ? !value.equals(t... |
### Question:
ReportExecutionRequestOptions extends ExecutionRequestOptions { public static ReportExecutionRequestOptions newRequest(String uri) { if (uri == null) { throw new IllegalArgumentException("Uri should not be null"); } return new ReportExecutionRequestOptions(uri); } private ReportExecutionRequestOptions(St... |
### Question:
ReportOptionRestApi { @NotNull public Set<ReportOptionEntity> requestReportOptionsList( @NotNull String reportUnitUri) throws IOException, HttpException { Utils.checkNotNull(reportUnitUri, "Report uri should not be null"); HttpUrl url = new PathResolver.Builder() .addPath("rest_v2") .addPath("reports") .a... |
### Question:
ReportOptionRestApi { @NotNull public ReportOptionEntity createReportOption( @NotNull String reportUnitUri, @NotNull String optionLabel, @NotNull List<ReportParameter> parameters, boolean overwrite) throws IOException, HttpException { Utils.checkNotNull(reportUnitUri, "Report uri should not be null"); Uti... |
### Question:
ReportOptionRestApi { public void updateReportOption( @NotNull String reportUnitUri, @NotNull String optionId, @NotNull List<ReportParameter> parameters) throws IOException, HttpException { Utils.checkNotNull(reportUnitUri, "Report uri should not be null"); Utils.checkNotNull(optionId, "Option id should n... |
### Question:
ReportOptionRestApi { public void deleteReportOption( @Nullable String reportUnitUri, @Nullable String optionId) throws IOException, HttpException { Utils.checkNotNull(reportUnitUri, "Report uri should not be null"); Utils.checkNotNull(optionId, "Option id should not be null"); HttpUrl url = new PathResol... |
### Question:
ServerRestApi { @NotNull public ServerInfoData requestServerInfo() throws IOException, HttpException { HttpUrl httpUrl = mClientWrapper.getBaseUrl().resolve("rest_v2/serverInfo"); Request request = new Request.Builder() .addHeader("Accept", "application/json; charset=UTF-8") .url(httpUrl) .get() .build();... |
### Question:
ServerRestApi { @NotNull public String requestBuild() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/build"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); @NotNull S... |
### Question:
ServerRestApi { @NotNull public String requestDateFormatPattern() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/dateFormatPattern"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requ... |
### Question:
ServerRestApi { @NotNull public String requestDateTimeFormatPattern() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/datetimeFormatPattern"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull Str... |
### Question:
ServerRestApi { @NotNull public String requestEdition() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/edition"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); @NotNu... |
### Question:
ServerRestApi { @NotNull public String requestEditionName() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/editionName"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition()... |
### Question:
ServerRestApi { @NotNull public String requestExpiration() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/expiration"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); ... |
### Question:
ServerRestApi { @NotNull public String requestFeatures() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/features"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); @Not... |
### Question:
ServerRestApi { @NotNull public String requestLicenseType() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/licenseType"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition()... |
### Question:
ServerRestApi { @NotNull public String requestVersion() throws IOException, HttpException { return plainRequest("rest_v2/serverInfo/version"); } ServerRestApi(NetworkClient networkClient); @NotNull ServerInfoData requestServerInfo(); @NotNull String requestBuild(); @NotNull String requestEdition(); @NotNu... |
### Question:
ReportExecutionRestApi { @NotNull public ReportExecutionDescriptor runReportExecution(@NotNull ReportExecutionRequestOptions executionOptions) throws IOException, HttpException { Utils.checkNotNull(executionOptions, "Execution options should not be null"); HttpUrl url = mNetworkClient.getBaseUrl().resolve... |
### Question:
ReportExecutionRestApi { @NotNull public ReportExecutionDescriptor requestReportExecutionDetails(@NotNull String executionId) throws IOException, HttpException { Utils.checkNotNull(executionId, "Execution id should not be null"); HttpUrl url = mNetworkClient.getBaseUrl().resolve("rest_v2/reportExecutions"... |
### Question:
ReportExecutionRestApi { @NotNull public ExecutionStatus requestReportExecutionStatus(@NotNull String executionId) throws IOException, HttpException { Utils.checkNotNull(executionId, "Execution id should not be null"); HttpUrl url = mNetworkClient.getBaseUrl() .resolve("rest_v2/reportExecutions") .newBuil... |
### Question:
ReportExecutionRestApi { public boolean cancelReportExecution(@NotNull String executionId) throws IOException, HttpException { Utils.checkNotNull(executionId, "Execution id should not be null"); HttpUrl url = mNetworkClient.getBaseUrl() .resolve("rest_v2/reportExecutions") .newBuilder() .addPathSegment(ex... |
### Question:
ReportExecutionRestApi { public boolean updateReportExecution(@NotNull String executionId, @NotNull List<ReportParameter> params) throws IOException, HttpException { Utils.checkNotNull(executionId, "Execution id should not be null"); Utils.checkNotNull(params, "Execution params should not be null"); Utils... |
### Question:
RetrofitOutputResource implements OutputResource { @Override public String getMimeType() { return mResponse.contentType().type(); } RetrofitOutputResource(ResponseBody input); @Override String getMimeType(); @Override long getLength(); @Override InputStream getStream(); }### Answer:
@Test public void sho... |
### Question:
RetrofitOutputResource implements OutputResource { @Override public long getLength() { try { return mResponse.contentLength(); } catch (IOException e) { return -1; } } RetrofitOutputResource(ResponseBody input); @Override String getMimeType(); @Override long getLength(); @Override InputStream getStream();... |
### Question:
RetrofitOutputResource implements OutputResource { @Override public InputStream getStream() throws IOException { return mResponse.byteStream(); } RetrofitOutputResource(ResponseBody input); @Override String getMimeType(); @Override long getLength(); @Override InputStream getStream(); }### Answer:
@Test p... |
### Question:
AuthRestApi { @NotNull public EncryptionKey requestEncryptionMetadata() throws IOException, HttpException { HttpUrl url2 = mNetworkClient.getBaseUrl().resolve("GetEncryptionKey"); Request request2 = new Request.Builder() .addHeader("Accept", "application/json; charset=UTF-8") .url(url2) .get() .build(); t... |
### Question:
ViPRResponsesSaxParser extends XmlResponsesSaxParser { public FileAccessResultHandler parseFileAccessResult(InputStream inputStream) throws AmazonClientException { FileAccessResultHandler handler = new FileAccessResultHandler(); parseXmlInputStream(handler, inputStream); return handler; } FileAccessResul... |
### Question:
KeyUtils { public static KeyPair rsaKeyPairFromBase64(String publicKey, String privateKey) throws GeneralSecurityException { try { byte[] pubKeyBytes = Base64.decodeBase64(publicKey.getBytes("US-ASCII")); byte[] privKeyBytes = Base64.decodeBase64(privateKey.getBytes("US-ASCII")); X509EncodedKeySpec pubKey... |
### Question:
KeyUtils { public static String encryptKey(SecretKey key, Provider provider, PublicKey publicKey) throws GeneralSecurityException { Cipher cipher = null; if(provider != null) { cipher = Cipher.getInstance(TransformConstants.KEY_ENCRYPTION_TRANSFORM, provider); } else { cipher = Cipher.getInstance(Transfor... |
### Question:
BasicEncryptionTransformFactory extends
EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { public void setMasterEncryptionKey(KeyPair pair) { if (!(pair.getPublic() instanceof RSAPublicKey)) { throw new IllegalArgumentException( "Only RSA KeyPairs are allow... |
### Question:
BasicEncryptionTransformFactory extends
EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { public void addMasterDecryptionKey(KeyPair pair) { try { String fingerprint = KeyUtils .getRsaPublicKeyFingerprint((RSAPublicKey) pair.getPublic(), provider); masterD... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { @Override public String getTransformClass() { return TransformConstants.COMPRESSION_CLASS; } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(Compress... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { public CompressionMode getCompressMode() { return compressMode; } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(CompressionMode compressMode); int ... |
### Question:
ViPRResponsesSaxParser extends XmlResponsesSaxParser { public ListDataNodesResultHandler parseListDataNodeResult(InputStream inputStream) throws AmazonClientException { ListDataNodesResultHandler handler = new ListDataNodesResultHandler(); parseXmlInputStream(handler, inputStream); return handler; } File... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { public void setCompressMode(CompressionMode compressMode) { this.compressMode = compressMode; } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(Compr... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { public int getCompressionLevel() { return compressionLevel; } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(CompressionMode compressMode); int getC... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { public void setCompressionLevel(int compressionLevel) { this.compressionLevel = compressionLevel; } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(C... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { @Override public CompressionOutputTransform getOutputTransform( OutputStream streamToEncodeTo, Map<String, String> metadataToEncode) throws IOException { switch(compressMode) { case Deflat... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { @Override public CompressionInputTransform getInputTransform(String transformConfig, InputStream streamToDecode, Map<String, String> metadata) throws IOException { String[] transformTuple ... |
### Question:
CompressionTransformFactory extends
TransformFactory<CompressionOutputTransform, CompressionInputTransform> { public boolean canDecode(String transformClass, String config, Map<String,String> metadata) { if(config == null) { logger.warn("Configuration string null"); return false; } String[] config... |
### Question:
LZMAInputStream extends InputStream implements Runnable { @Override public int read() throws IOException { checkStream(); try { return uncompressedPipeIn.read(); } catch(IOException e) { if(getDecompressionComplete()) { return -1; } throw e; } } LZMAInputStream(InputStream compressedStream); LZMAInputStr... |
### Question:
LZMAInputStream extends InputStream implements Runnable { @Override public long skip(long n) throws IOException { checkStream(); try { return uncompressedPipeIn.skip(n); } catch(IOException e) { if(getDecompressionComplete()) { return -1; } throw e; } } LZMAInputStream(InputStream compressedStream); LZMA... |
### Question:
LZMAInputStream extends InputStream implements Runnable { @Override public boolean markSupported() { return false; } LZMAInputStream(InputStream compressedStream); LZMAInputStream(InputStream compressedStream, int bufferSize); @Override int read(); @Override int available(); @Override void close(); @Over... |
### Question:
DeflateOutputStream extends OutputStream implements CompressionStream { @Override public void write(int b) throws IOException { digester.write(b); } DeflateOutputStream(OutputStream streamToCompress, int level); @Override Map<String, String> getStreamMetadata(); @Override void write(int b); @Override void... |
### Question:
LZMACompressionFilter extends InputStream implements CompressionStream, Runnable { @Override public Map<String, String> getStreamMetadata() { if(!closed) { throw new IllegalStateException("Stream must be closed before getting metadata"); } Map<String,String> metadata = new HashMap<String, String>(); long ... |
### Question:
LZMAOutputStream extends OutputStream implements CompressionStream, Runnable { @Override public Map<String, String> getStreamMetadata() { if(!closed) { throw new IllegalStateException("Stream must be closed before getting metadata"); } Map<String,String> metadata = new HashMap<String, String>(); long comp... |
### Question:
KeyStoreEncryptionFactory extends
EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { public KeyStoreEncryptionFactory(KeyStore keyStore, String masterEncryptionKeyAlias, char[] keyStorePassword) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPa... |
### Question:
KeyStoreEncryptionFactory extends
EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { @Override public BasicEncryptionOutputTransform getOutputTransform( OutputStream streamToEncodeTo, Map<String, String> metadataToEncode) throws IOException, TransformExcept... |
### Question:
KeyStoreEncryptionFactory extends
EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { public String getMasterEncryptionKeyAlias() { return masterEncryptionKeyAlias; } KeyStoreEncryptionFactory(KeyStore keyStore,
String masterEncryptionKeyAlias,
... |
### Question:
KeyUtils { public static String getRsaPublicKeyFingerprint(RSAPublicKey pubKey, Provider provider) throws NoSuchAlgorithmException { byte[] pubkeyEnc = derEncodeRSAPublicKey(pubKey); MessageDigest sha1; if(provider != null) { sha1 = MessageDigest.getInstance("sha1", provider); } else { sha1 = MessageDiges... |
### Question:
KeyUtils { public static String toHexPadded(byte[] data) { BigInteger bi = new BigInteger(1, data); String s = bi.toString(16); while(s.length() < (data.length*2)) { s = "0" + s; } return s; } static String getRsaPublicKeyFingerprint(RSAPublicKey pubKey, Provider provider); static String toHexPadded(byte... |
### Question:
KeyUtils { public static byte[] extractSubjectKeyIdentifier(byte[] derSki) { byte[] dst = new byte[20]; if(derSki.length != 24) { throw new RuntimeException("DER-encoded SKI should be 24 bytes"); } System.arraycopy(derSki, 4, dst, 0, 20); return dst; } static String getRsaPublicKeyFingerprint(RSAPublicKe... |
### Question:
PrimitiveUtils { public static Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; } private PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPrimit... |
### Question:
LinkedClassLoader extends ClassLoader { @Override protected Class<?> findClass(String name) throws ClassNotFoundException { Class<?> clazz = null; for (ClassLoader classLoader : classLoaders) { try { clazz = classLoader.loadClass(name); } catch (ClassNotFoundException e) { } } if (clazz == null) { throw n... |
### Question:
PrimitiveUtils { public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; } private PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPr... |
### Question:
PrimitiveUtils { public static boolean isPrimitiveWrapper(Class<?> type) { return wrapperTypes.containsKey(type); } private PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPrimi... |
### Question:
PrimitiveUtils { public static String getPrimitiveTypeNameFromWrapper(Class<?> type) { return wrapperTypes.get(type); } private PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getP... |
### Question:
Injector { static <T> T instantiateTestSubject(Field f) { T testSubject; @SuppressWarnings("unchecked") Class<T> type = (Class<T>) f.getType(); if(type.isMemberClass() && !Modifier.isStatic(type.getModifiers())) { throw new AssertionError("TestSubject is an inner class. You need to instantiate '" + f.getN... |
### Question:
VerseHelper { static int positionToBookIndex(int position) throws IllegalArgumentException { if (position < 0) { throw new IllegalArgumentException("Invalid position: " + position); } final int bookCount = Bible.getBookCount(); for (int bookIndex = 0; bookIndex < bookCount; ++bookIndex) { final int chapte... |
### Question:
VerseHelper { static int positionToChapterIndex(int position) throws IllegalArgumentException { if (position < 0) { throw new IllegalArgumentException("Invalid position: " + position); } final int bookCount = Bible.getBookCount(); for (int bookIndex = 0; bookIndex < bookCount; ++bookIndex) { final int cha... |
### Question:
VerseHelper { static int indexToPosition(int bookIndex, int chapterIndex) throws IllegalArgumentException { final int bookCount = Bible.getBookCount(); if (bookIndex < 0 || bookIndex >= bookCount) { throw new IllegalArgumentException("Invalid book index: " + bookIndex); } final int chapterCount = Bible.ge... |
### Question:
DependencyParseFeature implements FactFeature { @Override public void extractFeature(ComplexProof proof, Evidence evidence) { List<Pattern> patterns = searcher.querySolrIndex(evidence.getModel().getPropertyUri(), 20, 0, proof.getLanguage()); float score = (float) 0.0; String patternString = ""; for ( Patt... |
### Question:
LambdaServer implements HttpServer { @Override public boolean isMetricsEnabled() { return false; } LambdaServer(Vertx vertx, Context context, InputStream input, OutputStream output); @Override boolean isMetricsEnabled(); @Override ReadStream<HttpServerRequest> requestStream(); @Override HttpServer request... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse exceptionHandler(Handler<Throwable> handler) { checkWritten(); this.exceptionHandler = handler; return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerRes... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse setWriteQueueMaxSize(int maxSize) { checkWritten(); return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> ha... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse drainHandler(Handler<Void> handler) { checkWritten(); return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> ... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public String getStatusMessage() { return statusMessage; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerRespon... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse setChunked(boolean chunked) { checkWritten(); this.chunked = chunked; return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Han... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public MultiMap headers() { if (headers == null) { headers = MultiMap.caseInsensitiveMultiMap(); } return headers; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandl... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public MultiMap trailers() { if (trailers == null) { trailers = MultiMap.caseInsensitiveMultiMap(); } return trailers; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionH... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse closeHandler(Handler<Void> handler) { return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Overr... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse endHandler(Handler<Void> handler) { checkWritten(); this.endHandler = handler; return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHa... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse write(String chunk, String enc) { return write(Buffer.buffer(chunk, enc)); } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Thr... |
### Question:
LambdaServer implements HttpServer { @Override public ReadStream<HttpServerRequest> requestStream() { return null; } LambdaServer(Vertx vertx, Context context, InputStream input, OutputStream output); @Override boolean isMetricsEnabled(); @Override ReadStream<HttpServerRequest> requestStream(); @Override ... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse writeContinue() { return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerRespon... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public void end(String chunk) { end(Buffer.buffer(chunk)); } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResp... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse sendFile(String filename, long offset, long length) { throw new java.lang.UnsupportedOperationException("Not supported yet."); } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Over... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public void close() { closed = true; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse setWriteQueueMaxS... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public boolean ended() { return written; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse setWriteQueue... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public boolean headWritten() { return headWritten; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse set... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse headersEndHandler(Handler<Void> handler) { this.headersEndHandler = handler; return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHand... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse bodyEndHandler(Handler<Void> handler) { this.bodyEndHandler = handler; return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Ha... |
### Question:
LambdaServer implements HttpServer { @Override public HttpServer requestHandler(Handler<HttpServerRequest> handler) { this.requestHandler = handler; return this; } LambdaServer(Vertx vertx, Context context, InputStream input, OutputStream output); @Override boolean isMetricsEnabled(); @Override ReadStream... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public long bytesWritten() { return body().length(); } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse s... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public int streamId() { return -1; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse setWriteQueueMaxSiz... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public void reset(long code) { } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable> handler); @Override HttpServerResponse setWriteQueueMaxSize(in... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse push(HttpMethod method, String path, MultiMap headers, Handler<AsyncResult<HttpServerResponse>> handler) { return push(method, null, path, headers, handler); } HttpServerResponseImpl(OutputStream output); @Override ... |
### Question:
HttpServerResponseImpl implements HttpServerResponse { @Override public HttpServerResponse writeCustomFrame(int type, int flags, Buffer payload) { return this; } HttpServerResponseImpl(OutputStream output); @Override boolean writeQueueFull(); @Override HttpServerResponse exceptionHandler(Handler<Throwable... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpServerRequest exceptionHandler(Handler<Throwable> handler) { return this; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handle... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpServerRequest handler(Handler<Buffer> dataHandler) { checkEnded(); this.dataHandler = dataHandler; return this; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override Htt... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpServerRequest pause() { return this; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> handler); @Override Http... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpServerRequest resume() { return this; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> handler); @Override Htt... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpServerRequest endHandler(Handler<Void> endHandler) { checkEnded(); this.endHandler = endHandler; return this; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpS... |
### Question:
LambdaServer implements HttpServer { @Override public HttpServer connectionHandler(Handler<HttpConnection> handler) { return this; } LambdaServer(Vertx vertx, Context context, InputStream input, OutputStream output); @Override boolean isMetricsEnabled(); @Override ReadStream<HttpServerRequest> requestStre... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpVersion version() { return HttpVersion.HTTP_1_1; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> handler); @O... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public HttpMethod method() { return HttpMethod.valueOf(request.getString("httpMethod")); } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Ha... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public String rawMethod() { return request.getString("httpMethod"); } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> hand... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public boolean isSSL() { return false; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> handler); @Override HttpServerReq... |
### Question:
HttpServerRequestImpl implements HttpServerRequest { @Override public String scheme() { return "http"; } HttpServerRequestImpl(String localHost, int localPort, JsonObject request, HttpServerResponse response); @Override HttpServerRequest exceptionHandler(Handler<Throwable> handler); @Override HttpServerRe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.