Package org.commonjava.test.http.stream
Class StreamServer
- java.lang.Object
-
- org.commonjava.test.http.stream.StreamServer
-
- All Implemented Interfaces:
HttpServerFixture<StreamServer>
public class StreamServer extends Object implements HttpServerFixture<StreamServer>
-
-
Constructor Summary
Constructors Constructor Description StreamServer(String resourceBase)StreamServer(StreamResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatPath(String... subpath)StringformatUrl(String... subpath)Map<String,Integer>getAccessesByPathKey()IntegergetAccessesFor(String path)IntegergetAccessesFor(String method, String path)StringgetAccessKey(String method, String path)StringgetAccessKey(CommonMethod method, String path)StringgetBaseUri()intgetPort()StringgetUrlPath(String url)StreamServerstart()voidstop()
-
-
-
Constructor Detail
-
StreamServer
public StreamServer(StreamResolver resolver)
-
StreamServer
public StreamServer(String resourceBase)
-
-
Method Detail
-
getPort
public int getPort()
-
stop
public void stop()
- Specified by:
stopin interfaceHttpServerFixture<StreamServer>
-
start
public StreamServer start()
- Specified by:
startin interfaceHttpServerFixture<StreamServer>
-
getBaseUri
public String getBaseUri()
-
getUrlPath
public String getUrlPath(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
getAccessKey
public String getAccessKey(CommonMethod method, String path)
-
-