@Test public void testGet_WebDav() throws Exception { httpServer.setWebDav( HttpServer.WebDav.REQUIRED ); RecordingTransportListener listener = new RecordingTransportListener(); GetTask task = new GetTask( URI.create( "repo/dir/file.txt" ) ).setListener( listener ); ( (HttpTransporter) transporter ).getState().setWebDav( true ); transporter.get( task ); assertEquals( "test", task.getDataString() ); assertEquals( 0, listener.dataOffset ); assertEquals( 4, listener.dataLength ); assertEquals( 1, listener.startedCount ); assertTrue( "Count: " + listener.progressedCount, listener.progressedCount > 0 ); assertEquals( task.getDataString(), listener.baos.toString( "UTF-8" ) ); assertEquals( httpServer.getLogEntries().toString(), 1, httpServer.getLogEntries().size() ); }
LocalState getState() { return state; }
HttpTransporter extends AbstractTransporter { LocalState getState() { return state; } }
HttpTransporter extends AbstractTransporter { LocalState getState() { return state; } HttpTransporter( RemoteRepository repository, RepositorySystemSession session, Logger logger ); }
HttpTransporter extends AbstractTransporter { LocalState getState() { return state; } HttpTransporter( RemoteRepository repository, RepositorySystemSession session, Logger logger ); int classify( Throwable error ); }
HttpTransporter extends AbstractTransporter { LocalState getState() { return state; } HttpTransporter( RemoteRepository repository, RepositorySystemSession session, Logger logger ); int classify( Throwable error );  }