Apache Abdera API

org.apache.abdera.protocol.server
Interface Provider

All Known Implementing Classes:
org.apache.abdera.protocol.server.impl.AbstractProvider, org.apache.abdera.protocol.server.impl.AbstractWorkspaceProvider, BasicProvider, ManagedProvider

public interface Provider

Providers are responsible for processing all requests to the Atompub server.


Method Summary
 Abdera getAbdera()
          Retrieve the Abdera instance associated with this provider
 Filter[] getFilters(RequestContext request)
          Return the listing of filters for this request
 String getProperty(String name)
          Get the specified property
 String[] getPropertyNames()
          Return a listing of all available properties
 void init(Abdera abdera, Map<String,String> properties)
          Initialize the Provider.
 ResponseContext process(RequestContext request)
          Process the request
 Subject resolveSubject(RequestContext request)
          Resolve the subject using the Provider's Subject Resolver
 Target resolveTarget(RequestContext request)
          Resolve the target using the Provider's Target Resolver
 String urlFor(RequestContext request, Object key, Object param)
          Construct a URL using to Provider's Target Builder
 

Method Detail

init

void init(Abdera abdera,
          Map<String,String> properties)
Initialize the Provider.


getAbdera

Abdera getAbdera()
Retrieve the Abdera instance associated with this provider


getProperty

String getProperty(String name)
Get the specified property


getPropertyNames

String[] getPropertyNames()
Return a listing of all available properties


resolveSubject

Subject resolveSubject(RequestContext request)
Resolve the subject using the Provider's Subject Resolver


resolveTarget

Target resolveTarget(RequestContext request)
Resolve the target using the Provider's Target Resolver


urlFor

String urlFor(RequestContext request,
              Object key,
              Object param)
Construct a URL using to Provider's Target Builder


process

ResponseContext process(RequestContext request)
Process the request


getFilters

Filter[] getFilters(RequestContext request)
Return the listing of filters for this request


Apache Abdera API

Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.