private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
The ReferrerPushStrategy that is distributed with Jetty (Configuring SPDY push) does a great job to automatically detect subresources to push for a given main resource. However there might be reasons to implement your own push strategy.
The parameters are the Stream for the primary resource request, the request and the response header fields. Based on this information the implementation has to decide which resources to push and return a Set<String> containing the URLs for the resources to push. Jetty will then open a push stream for each URL returned in that list and push the contents of that file. This is the only method that you need to implement.
For reference and as a working example use the ReferrerPushStrategy source code: