|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.content.cmis.rest.resources.BaseCMISResource
public abstract class BaseCMISResource
A resource can be accessed via a JSR311 server via it's @Resource and @Path annotations.
A resource that extends BaseCMISResource can also be instantiated and called directly, using a custom UriService.
E.g. TypeDefinition tdResource = new TypeDefinition(); tdResource.setHttpRequest(request); tdResource.setUriService(new MockUriService()); EntryType entry = tdResource.getTypeDefinition(repoName, typeId);
A simple implementation of MockUriService might be:
class MockUriService extends oracle.webcenter.jaxrs.framework.uri.UriService {@Override
public UriBuilder getAbsolutePathUriBuilder() throws IllegalStateException { return UriBuilder.fromUri("/"); }@Override
public UriBuilder getBaseUriBuilder() throws IllegalStateException { return UriBuilder.fromUri("/"); }@Override
public UriBuilder getRequestUriBuilder() throws IllegalStateException { return UriBuilder.fromUri("/"); } }
Constructor Summary | |
---|---|
BaseCMISResource() |
Method Summary | |
---|---|
ContentContext |
getContentContext() |
javax.servlet.http.HttpServletRequest |
getHttpRequest() |
oracle.webcenter.jaxrs.framework.uri.UriService |
getUriService() |
void |
setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest) |
void |
setUriService(oracle.webcenter.jaxrs.framework.uri.UriService uriService) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseCMISResource()
Method Detail |
---|
public void setUriService(oracle.webcenter.jaxrs.framework.uri.UriService uriService)
@Context
public void setHttpRequest(javax.servlet.http.HttpServletRequest httpRequest)
public javax.servlet.http.HttpServletRequest getHttpRequest()
public ContentContext getContentContext() throws RepositoryException
RepositoryException
public oracle.webcenter.jaxrs.framework.uri.UriService getUriService()
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.