//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @GET public javax.ws.rs.core.Response discover() public virtual Response Discover() { if (_coreDatabase == null) { return(status(FORBIDDEN).build()); } return(_output.ok(new CoreDatabaseAvailabilityDiscoveryRepresentation(BASE_PATH, IS_WRITABLE_PATH))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @GET public javax.ws.rs.core.Response discover() public virtual Response Discover() { if (_haDb == null) { return(status(FORBIDDEN).build()); } string isMasterUri = IS_MASTER_PATH; string isSlaveUri = IS_SLAVE_PATH; HaDiscoveryRepresentation dr = new HaDiscoveryRepresentation(BASE_PATH, isMasterUri, isSlaveUri); return(_output.ok(dr)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @GET public javax.ws.rs.core.Response getServiceDefinition(@Context UriInfo uriInfo, @Context OutputFormat output) public virtual Response GetServiceDefinition(UriInfo uriInfo, OutputFormat output) { ServerRootRepresentation representation = new ServerRootRepresentation(uriInfo.BaseUri, _neoServer.Services); return(output.ok(representation)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @GET @Produces(javax.ws.rs.core.MediaType.APPLICATION_JSON) public javax.ws.rs.core.Response getDiscoveryDocument(@Context UriInfo uriInfo) public virtual Response GetDiscoveryDocument(UriInfo uriInfo) { return(_outputFormat.ok(new DiscoveryRepresentation((new DiscoverableURIs.Builder(_uris)).overrideAbsolutesFromRequest(uriInfo.BaseUri).build()))); }