private String getReposBaseURL(String protocol, String port) { String reposBaseURL = null; String fedoraServerHost = ((Module) m_access).getServer() .getParameter("fedoraServerHost"); reposBaseURL = protocol + "://" + fedoraServerHost + ":" + port; return reposBaseURL; }
public static final ReadOnlyContext getContext(String messageProtocol, String subjectId, String password, /* * String[] * roles, */ boolean noOp) throws Exception { MultiValueMap<URI> environmentMap = beginEnvironmentMap(messageProtocol); environmentMap.lock(); // no request to grok more from return getContext(null, environmentMap, subjectId, password, /* roles, */ null, noOp); }
public void setEnvironmentValues(MultiValueMap<URI> environmentAttributes) { m_environmentAttributes = environmentAttributes; if (m_environmentAttributes == null) { m_environmentAttributes = new MultiValueMap<URI>(); } m_environmentAttributes.lock(); }
private static MultiValueMap<String> buildMultiMap(String[][] pairs) { MultiValueMap<String> map = new MultiValueMap<String>(); for (String[] pair : pairs) { map.set(pair[0], pair[1]); } return map; }
public FedoraAPIMImpl(Server server) { m_server = server; m_management = (Management) m_server .getModule("org.fcrepo.server.management.Management"); }
public void setActionAttributes(MultiValueMap<URI> actionAttributes) { if (actionAttributes == null) { actionAttributes = new MultiValueMap<URI>(); } this.actionAttributes = actionAttributes; }
public T setReturn(T name, String[] value) throws IllegalArgumentException, IllegalStateException { set(name, value); return name; }
/** * Gets the value of a named configuration parameter. * * @param name * The parameter name. * @return String The value, null if undefined. */ public String getParameter(String name) { return getParameter(name, false); }
/** * Creates a Parameterized with name-value pairs from the supplied Map. * * @param parameters * The map from which to derive the name-value pairs. */ public Parameterized(Map<String, String> parameters) { setParameters(parameters); }
/** * Creates a Pluggable with name-value pairs from the supplied Map. * * @param parameters * The map from which to derive the name-value pairs. */ public Pluggable(Map<String, String> parameters) { setParameters(parameters); }
public static final ReadOnlyContext getContext(String messageProtocol, String subjectId, String password, /* * String[] * roles, */ boolean noOp) throws Exception { MultiValueMap<URI> environmentMap = beginEnvironmentMap(messageProtocol); environmentMap.lock(); // no request to grok more from return getContext(null, environmentMap, subjectId, password, /* roles, */ null, noOp); }
public void setEnvironmentValues(MultiValueMap<URI> environmentAttributes) { m_environmentAttributes = environmentAttributes; if (m_environmentAttributes == null) { m_environmentAttributes = new MultiValueMap<URI>(); } m_environmentAttributes.lock(); }
public FedoraAPIMMTOMImpl(Server server) { m_server = server; m_management = (Management) m_server .getModule("org.fcrepo.server.management.Management"); }
private String getReposBaseURL(String protocol, String port) { String reposBaseURL = null; String fedoraServerHost = ((Module) m_access).getServer() .getParameter("fedoraServerHost"); reposBaseURL = protocol + "://" + fedoraServerHost + ":" + port; return reposBaseURL; }
/** * Gets the value of a named configuration parameter. * * @param name * The parameter name. * @return String The value, null if undefined. */ public String getParameter(String name) { return getParameter(name, false); }
/** * Creates a Parameterized with name-value pairs from the supplied Map. * * @param parameters * The map from which to derive the name-value pairs. */ public Parameterized(Map<String, String> parameters) { setParameters(parameters); }
@Override public void setActionAttributes(MultiValueMap<URI> actionAttributes) { if (actionAttributes == null) { m_actionAttributes = new MultiValueMap<URI>(); } else { m_actionAttributes = actionAttributes; } m_actionAttributes.lock(); }
public FedoraAPIMMTOMImpl(Server server) { m_server = server; m_management = (Management) m_server .getModule("org.fcrepo.server.management.Management"); }