protected Context getContext() { return ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, m_servletRequest); }
private Context getContext() throws Exception { if (fedoraCtx != null) { return fedoraCtx; } fedoraCtx = ReadOnlyContext.getContext(null, null, null, ReadOnlyContext.DO_OP); return fedoraCtx; }
protected Context getContext() { return ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, m_servletRequest); }
public InputStream getContentStream() throws StreamIOException { Context context = null; try { context = ReadOnlyContext.getContext(null, null, "", false); } catch (Throwable t){ context = null; } return getContentStream(context); }
private Context getContext() throws PolicyStoreException { try { return ReadOnlyContext.getContext(null, "fedoraBootstrap", null, false); } catch (Exception e) { throw new PolicyStoreException(e.getMessage(), e); } }
private Context getContext() throws Exception { return ReadOnlyContext.getContext("http", "lolUser", "wutPassword", false); } public static junit.framework.Test suite() {
public InputStream getContentStream() throws StreamIOException { Context context = null; try { context = ReadOnlyContext.getContext(null, null, "", false); } catch (Throwable t){ context = null; } return getContentStream(context); }
private Context getContext() throws MelcoeXacmlException { if (fedoraCtx != null) { return fedoraCtx; } try { fedoraCtx = ReadOnlyContext.getContext(null, null, null, ReadOnlyContext.DO_OP); } catch (Exception e) { throw new MelcoeXacmlException(e.getMessage(), e); } return fedoraCtx; }
public static Context getSoapContext(javax.xml.ws.handler.MessageContext ctx) { HttpServletRequest req = (HttpServletRequest) ctx.get(AbstractHTTPDestination.HTTP_REQUEST); return ReadOnlyContext.getContext(Constants.HTTP_REQUEST.SOAP.uri, req); }
public static Context getSoapContext(javax.xml.ws.handler.MessageContext ctx) { HttpServletRequest req = (HttpServletRequest) ctx.get(AbstractHTTPDestination.HTTP_REQUEST); return ReadOnlyContext.getContext(Constants.HTTP_REQUEST.SOAP.uri, req); }
private Context getContext() throws MelcoeXacmlException { if (fedoraCtx != null) { return fedoraCtx; } try { fedoraCtx = ReadOnlyContext.getContext(null, null, null, ReadOnlyContext.DO_OP); } catch (Exception e) { throw new MelcoeXacmlException(e.getMessage(), e); } return fedoraCtx; }
public void test(String[] args) throws OAIException, RepositoryException { ByteArrayOutputStream out = new ByteArrayOutputStream(); Context context = ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, null); try { getResponder().respond(context, getAsParameterMap(args), out); } catch (AuthzOperationalException aoe) { System.out.println("403 - operational"); } catch (AuthzDeniedException ade) { System.out.println("403"); } catch (AuthzPermittedException ape) { System.out.println("100"); } catch (AuthzException ae) { System.out.println("403 - general"); } System.out.println(new String(out.toByteArray())); }
public void test(String[] args) throws OAIException, RepositoryException { ByteArrayOutputStream out = new ByteArrayOutputStream(); Context context = ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, null); try { getResponder().respond(context, getAsParameterMap(args), out); } catch (AuthzOperationalException aoe) { System.out.println("403 - operational"); } catch (AuthzDeniedException ade) { System.out.println("403"); } catch (AuthzPermittedException ape) { System.out.println("100"); } catch (AuthzException ae) { System.out.println("403 - general"); } System.out.println(new String(out.toByteArray())); }
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 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); }
ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, request); try {
public InputStream getContentStreamForChecksum() throws StreamIOException { /** * What should the context be here? */ MultiValueMap<URI> environmentAttributes = beginEnvironmentMap(""); try { environmentAttributes.set(Constants.HTTP_REQUEST.CLIENT_IP_ADDRESS.attributeId, "127.0.0.1"); } catch (Exception e) { logger.warn("Could not set client IP for checksum context!"); } ReadOnlyContext context; try { context = ReadOnlyContext.getContext(null, null, "fcrepo-checksum", false); } catch (Exception e) { throw new StreamIOException(e.getMessage(),e); } context.setEnvironmentValues(environmentAttributes); return getContentStream(context); }
public InputStream getContentStreamForChecksum() throws StreamIOException { /** * What should the context be here? */ MultiValueMap<URI> environmentAttributes = beginEnvironmentMap(""); try { environmentAttributes.set(Constants.HTTP_REQUEST.CLIENT_IP_ADDRESS.attributeId, "127.0.0.1"); } catch (Exception e) { logger.warn("Could not set client IP for checksum context!"); } ReadOnlyContext context; try { context = ReadOnlyContext.getContext(null, null, "fcrepo-checksum", false); } catch (Exception e) { throw new StreamIOException(e.getMessage(),e); } context.setEnvironmentValues(environmentAttributes); return getContentStream(context); }
throws ServletException, IOException { Context context = ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri, request); try {
startStatus(m_now); m_context = ReadOnlyContext.getContext("utility", "fedoraAdmin", "", /* null, */ ReadOnlyContext.DO_OP);