de.smartics.properties.admin.resources.representation.html.share
Class HtmlPathHelper

Package class diagram package HtmlPathHelper
java.lang.Object
  extended by de.smartics.properties.admin.resources.representation.html.share.HtmlPathHelper

public final class HtmlPathHelper
     
     
extends Object

Helper to create request paths.


Constructor Summary
HtmlPathHelper(javax.ws.rs.core.UriInfo uriInfo)
          Default constructor.
 
Method Summary
 String bootstrap(String relativePath)
          Returns an absolute path to a bootstrap resource.
 String css(String relativePath)
          Returns an absolute path to the given css file.
 String ds()
          Returns the path to the datasource configuration on a JBoss server.
 String jquery(String relativePath)
          Returns an absolute path to the given jquery file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlPathHelper

public HtmlPathHelper(javax.ws.rs.core.UriInfo uriInfo)
Default constructor.

Parameters:
uriInfo - the helper to construct paths.
Method Detail

css

public String css(String relativePath)
Returns an absolute path to the given css file.

Parameters:
relativePath - the path relative to the css folder (without leading slash).
Returns:
the absolute path to the CSS resource on the server.

jquery

public String jquery(String relativePath)
Returns an absolute path to the given jquery file.

Parameters:
relativePath - the path relative to the jquery folder (without leading slash).
Returns:
the absolute path to the jquery resource on the server.

bootstrap

public String bootstrap(String relativePath)
Returns an absolute path to a bootstrap resource.

Parameters:
relativePath - the path relative to the bootstrap folder (without leading slash).
Returns:
the absolute path to the bootstrap resource on the server.

ds

public String ds()
Returns the path to the datasource configuration on a JBoss server.

Returns:
the path to the datasource configuration on a JBoss server.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.