org.fcrepo.server
Class ReadOnlyContext

java.lang.Object
  extended by org.fcrepo.server.ReadOnlyContext
All Implemented Interfaces:
Context

public class ReadOnlyContext
extends Object
implements Context

Context that is read-only.

Version:
$Id$
Author:
Chris Wilper

Field Summary
static String BACKEND_SERVICE
           
static boolean DO_OP
           
static ReadOnlyContext EMPTY
           
static boolean NO_OP
           
 
Fields inherited from interface org.fcrepo.server.Context
FEDORA_AUX_SUBJECT_ATTRIBUTES
 
Method Summary
 Iterator actionAttributes()
           
 Iterator environmentAttributes()
           
 String getActionValue(String name)
           
 String[] getActionValues(String name)
           
static ReadOnlyContext getContext(String messageProtocol, javax.servlet.http.HttpServletRequest request)
           
static ReadOnlyContext getContext(String messageProtocol, String subjectId, String password, boolean noOp)
           
 MultiValueMap getEnvironmentAttributes()
           
 String getEnvironmentValue(String name)
           
 String[] getEnvironmentValues(String name)
           
 boolean getNoOp()
           
 String getPassword()
           
 String getResourceValue(String name)
           
 String[] getResourceValues(String name)
           
static Context getSoapContext()
           
 String getSubjectValue(String name)
           
 String[] getSubjectValues(String name)
           
 int nActionValues(String name)
           
 int nEnvironmentValues(String name)
           
 Date now()
           
 int nResourceValues(String name)
           
 int nSubjectValues(String name)
           
 Iterator resourceAttributes()
           
 void setActionAttributes(MultiValueMap actionAttributes)
           
 void setResourceAttributes(MultiValueMap resourceAttributes)
           
 Iterator subjectAttributes()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static ReadOnlyContext EMPTY

NO_OP

public static final boolean NO_OP
See Also:
Constant Field Values

DO_OP

public static final boolean DO_OP
See Also:
Constant Field Values

BACKEND_SERVICE

public static final String BACKEND_SERVICE
See Also:
Constant Field Values
Method Detail

getEnvironmentAttributes

public final MultiValueMap getEnvironmentAttributes()
Specified by:
getEnvironmentAttributes in interface Context

environmentAttributes

public Iterator environmentAttributes()
Specified by:
environmentAttributes in interface Context

nEnvironmentValues

public int nEnvironmentValues(String name)
Specified by:
nEnvironmentValues in interface Context

getEnvironmentValue

public String getEnvironmentValue(String name)
Specified by:
getEnvironmentValue in interface Context

getEnvironmentValues

public String[] getEnvironmentValues(String name)
Specified by:
getEnvironmentValues in interface Context

subjectAttributes

public Iterator subjectAttributes()
Specified by:
subjectAttributes in interface Context

nSubjectValues

public int nSubjectValues(String name)
Specified by:
nSubjectValues in interface Context

getSubjectValue

public String getSubjectValue(String name)
Specified by:
getSubjectValue in interface Context

getSubjectValues

public String[] getSubjectValues(String name)
Specified by:
getSubjectValues in interface Context

setActionAttributes

public void setActionAttributes(MultiValueMap actionAttributes)
Specified by:
setActionAttributes in interface Context

actionAttributes

public Iterator actionAttributes()
Specified by:
actionAttributes in interface Context

nActionValues

public int nActionValues(String name)
Specified by:
nActionValues in interface Context

getActionValue

public String getActionValue(String name)
Specified by:
getActionValue in interface Context

getActionValues

public String[] getActionValues(String name)
Specified by:
getActionValues in interface Context

resourceAttributes

public Iterator resourceAttributes()
Specified by:
resourceAttributes in interface Context

setResourceAttributes

public void setResourceAttributes(MultiValueMap resourceAttributes)
Specified by:
setResourceAttributes in interface Context

nResourceValues

public int nResourceValues(String name)
Specified by:
nResourceValues in interface Context

getResourceValue

public String getResourceValue(String name)
Specified by:
getResourceValue in interface Context

getResourceValues

public String[] getResourceValues(String name)
Specified by:
getResourceValues in interface Context

toString

public String toString()
Specified by:
toString in interface Context
Overrides:
toString in class Object

now

public Date now()
Specified by:
now in interface Context

getSoapContext

public static Context getSoapContext()

getContext

public static final ReadOnlyContext getContext(String messageProtocol,
                                               String subjectId,
                                               String password,
                                               boolean noOp)
                                        throws Exception
Throws:
Exception

getContext

public static final ReadOnlyContext getContext(String messageProtocol,
                                               javax.servlet.http.HttpServletRequest request)

getPassword

public String getPassword()
Specified by:
getPassword in interface Context

getNoOp

public boolean getNoOp()
Specified by:
getNoOp in interface Context


Copyright © 2011 DuraSpace. All Rights Reserved.