|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.MockContext
public class MockContext
Context object for testing. Currently, only getSubjectValue() and now() are implemented.
| Field Summary |
|---|
| Fields inherited from interface org.fcrepo.server.Context |
|---|
FEDORA_AUX_SUBJECT_ATTRIBUTES |
| Constructor Summary | |
|---|---|
MockContext()
|
|
| Method Summary | |
|---|---|
Iterator |
actionAttributes()
|
Iterator |
environmentAttributes()
|
String |
getActionValue(String name)
|
String[] |
getActionValues(String name)
|
MultiValueMap |
getEnvironmentAttributes()
|
String |
getEnvironmentValue(String name)
|
String[] |
getEnvironmentValues(String name)
|
boolean |
getNoOp()
|
String |
getPassword()
|
String |
getResourceValue(String name)
|
String[] |
getResourceValues(String name)
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fcrepo.server.Context |
|---|
toString |
| Constructor Detail |
|---|
public MockContext()
| Method Detail |
|---|
public Iterator actionAttributes()
actionAttributes in interface Contextpublic Iterator environmentAttributes()
environmentAttributes in interface Contextpublic String getActionValue(String name)
getActionValue in interface Contextpublic String[] getActionValues(String name)
getActionValues in interface Contextpublic MultiValueMap getEnvironmentAttributes()
getEnvironmentAttributes in interface Contextpublic String getEnvironmentValue(String name)
getEnvironmentValue in interface Contextpublic String[] getEnvironmentValues(String name)
getEnvironmentValues in interface Contextpublic boolean getNoOp()
getNoOp in interface Contextpublic String getPassword()
getPassword in interface Contextpublic String getResourceValue(String name)
getResourceValue in interface Contextpublic String[] getResourceValues(String name)
getResourceValues in interface Contextpublic String getSubjectValue(String name)
getSubjectValue in interface Contextpublic String[] getSubjectValues(String name)
getSubjectValues in interface Contextpublic int nActionValues(String name)
nActionValues in interface Contextpublic int nEnvironmentValues(String name)
nEnvironmentValues in interface Contextpublic int nResourceValues(String name)
nResourceValues in interface Contextpublic int nSubjectValues(String name)
nSubjectValues in interface Contextpublic Date now()
now in interface Contextpublic Iterator resourceAttributes()
resourceAttributes in interface Contextpublic void setActionAttributes(MultiValueMap actionAttributes)
setActionAttributes in interface Contextpublic void setResourceAttributes(MultiValueMap resourceAttributes)
setResourceAttributes in interface Contextpublic Iterator subjectAttributes()
subjectAttributes in interface Context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||