public class AtomFeed extends Object implements TavernaServerREST.EventFeed, UriBuilderFactory, org.springframework.web.context.ServletContextAware
Modifier and Type | Field and Description |
---|---|
static String |
PREFERRED_URI_PARAM
The name of a parameter that states what address we should claim that the
feed's internally-generated URIs are relative to.
|
Constructor and Description |
---|
AtomFeed() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.UriBuilder |
getBaseUriBuilder() |
org.apache.abdera.model.Entry |
getEvent(String id) |
org.apache.abdera.model.Feed |
getFeed(javax.ws.rs.core.UriInfo ui) |
String |
getFeedLanguage() |
javax.ws.rs.core.UriBuilder |
getRunUriBuilder(TavernaRun run)
Given a run, get a factory for RESTful URIs to resources associated
with it.
|
String |
resolve(String uri)
Resolves a URI with respect to the base URI of the factory.
|
void |
setAbdera(org.apache.abdera.Abdera abdera) |
void |
setEventSource(EventDAO eventSource) |
void |
setFeedLanguage(String language) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setSupport(TavernaServerSupport support) |
public static final String PREFERRED_URI_PARAM
public void setEventSource(EventDAO eventSource)
public void setSupport(TavernaServerSupport support)
public void setFeedLanguage(String language)
public String getFeedLanguage()
public void setAbdera(org.apache.abdera.Abdera abdera)
@InvocationCounter.CallCounted @RolesAllowed(value="ROLE_tavernauser") public org.apache.abdera.model.Feed getFeed(javax.ws.rs.core.UriInfo ui)
getFeed
in interface TavernaServerREST.EventFeed
@InvocationCounter.CallCounted @RolesAllowed(value="ROLE_tavernauser") public org.apache.abdera.model.Entry getEvent(String id)
getEvent
in interface TavernaServerREST.EventFeed
id
- The identifier for a particular event.public javax.ws.rs.core.UriBuilder getRunUriBuilder(TavernaRun run)
UriBuilderFactory
getRunUriBuilder
in interface UriBuilderFactory
run
- The run in question.URI
factory.public javax.ws.rs.core.UriBuilder getBaseUriBuilder()
getBaseUriBuilder
in interface UriBuilderFactory
public String resolve(String uri)
UriBuilderFactory
resolve
in interface UriBuilderFactory
uri
- The URI to resolve, or null.public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.