@Override protected Reference determineRootRef(Request request) { String ref = "file:/"; return new Reference(ref); }}; anypath.setListingAllowed(true);
@Override protected Reference determineRootRef(Request request) { try { return new Reference( EngineApplication.this.getEngine() .getJob(TextUtils.urlUnescape( (String)request.getAttributes().get("job"))) .getJobDir().getCanonicalFile().toURI().toString()); } catch (IOException e) { throw new RuntimeException(e); } }}; jobdir.setListingAllowed(true);
/** * Constructs a nested Map data structure with the information represented * by this Resource. The result is particularly suitable for use with with * {@link XmlMarshaller}. * * @return the nested Map data structure */ protected ScriptModel makeDataModel() { String baseRef = getRequest().getResourceRef().getBaseRef().toString(); if(!baseRef.endsWith("/")) { baseRef += "/"; } Reference baseRefRef = new Reference(baseRef); ScriptModel model = new ScriptModel(scriptingConsole, new Reference(baseRefRef, "..").getTargetRef().toString(), getAvailableScriptEngines()); return model; }
bean.put("url", new Reference(baseRef, "../beans/" + getBeanToNameMap().get(obj)).getTargetRef()); bean.put("class", obj.getClass().getName());
new Reference(getRequest().getResourceRef().getBaseRef(), "..").getTargetRef().toString(), beanPath, bean,
/** * Constructor with the URI reference to the XML configuration file. * * @param xmlConfigurationRef * The URI reference to the XML configuration file. * @deprecated Use XML support in the Spring extension instead. */ @Deprecated public Component(String xmlConfigurationRef) { this((xmlConfigurationRef == null) ? null : new Reference( xmlConfigurationRef)); }
/** * Creates then adds a reference at the end of the list. * * @param uri * The uri of the reference to add. * @return True (as per the general contract of the Collection.add method). */ public boolean add(String uri) { return add(new Reference(uri)); }
/** * Sets the base reference for relative references. * * @param baseUri * The base URI for relative references. */ public void setBaseRef(String baseUri) { setBaseRef(new Reference(baseUri)); }
/** * Sets the base reference for relative references. * * @param baseUri * The base URI for relative references. */ public void setBaseRef(String baseUri) { setBaseRef(new Reference(baseUri)); }
/** * Sets the list reference. * * @param identifier * The list identifier as a URI. */ public void setIdentifier(String identifier) { setIdentifier(new Reference(identifier)); }
/** * Constructor. * * @param entryUri * The entry URI. * @throws IOException */ public Entry(String entryUri) throws IOException { this(new Client(new Reference(entryUri).getSchemeProtocol()), entryUri); }
/** * Constructor. * * @param categoriesUri * The feed URI. * @throws IOException */ public Categories(String categoriesUri) throws IOException { this(new Client(new Reference(categoriesUri).getSchemeProtocol()), categoriesUri); }
/** * Sets the host reference using an URI string. Note that when used with * HTTP connectors, this property maps to the "Host" header. * * @param hostUri * The host URI. */ public void setHostRef(String hostUri) { setHostRef(new Reference(hostUri)); }
/** * Constructor. * * @param feedUri * The feed URI. * @throws IOException */ public Feed(String feedUri) throws IOException { this(new Client(new Reference(feedUri).getSchemeProtocol()), feedUri); }
protected Reference createReference( Reference base, String relPart ) { Reference ref = new Reference( base, relPart ); return updateBaseRefPath( ref ).getTargetRef(); }
private void addFoafProperty(Graph graph, Reference subject, String predicate, String object) { graph.add(subject, new Reference(FOAF_NS + predicate), new Literal( object)); }
public MailRepresentation retrieve() { MailRepresentation mail = new MailRepresentation(); mail.setStatus("received"); mail.setSubject("Message to self"); mail.setContent("Doh!"); mail.setAccountRef(new Reference(getReference(), "..").getTargetRef() .toString()); return mail; }
public Mail retrieve() { Mail mail = new Mail(); mail.setStatus("received"); mail.setSubject("Message to self"); mail.setContent("Doh!"); mail.setAccountRef(new Reference(getReference(), "..").getTargetRef() .toString()); return mail; }
public Mail retrieve() { Mail mail = new Mail(); mail.setStatus("received"); mail.setSubject("Message to self"); mail.setContent("Doh!"); mail.setAccountRef(new Reference(getReference(), "..").getTargetRef() .toString()); return mail; }