@Path(value="/") public class Facade extends Object
Constructor and Description |
---|
Facade() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(javax.ws.rs.core.UriInfo ui)
Serve up some HTML as the root of the service.
|
void |
setContextualizer(Contextualizer contextualizer) |
void |
setFile(String file)
Set what resource file to use as the template for the response.
|
public void setFile(String file) throws IOException
file
- The file from which to load the data (presumed HTML) to serve
up as the root content.IOException
- If the file doesn't exist.public void setContextualizer(Contextualizer contextualizer)
@GET @Path(value="{dummy:.*}") @Produces(value="text/html") public javax.ws.rs.core.Response get(@Context javax.ws.rs.core.UriInfo ui)
ui
- A reference to how we were accessed by the service.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.