示例#1
0
文件: Places.java 项目: hal/hal.next
 /**
  * Returns a place request builder for the specified token with parameters for the selected host
  * and server (when running domain mode).
  */
 public PlaceRequest.Builder selectedServer(final String token) throws IllegalStateException {
   PlaceRequest.Builder builder = new PlaceRequest.Builder().nameToken(token);
   if (!environment.isStandalone()) {
     if (browseByServerGroups()) {
       builder.with(SERVER_GROUP, statementContext.selectedServerGroup());
     } else {
       builder.with(HOST, statementContext.selectedHost());
     }
     builder.with(SERVER, statementContext.selectedServer());
   }
   return builder;
 }
示例#2
0
文件: Places.java 项目: hal/hal.next
 /**
  * Returns a place request builder for the specified token with parameters for the selected
  * profile (when running domain mode).
  */
 public PlaceRequest.Builder selectedProfile(final String token) throws IllegalStateException {
   PlaceRequest.Builder builder = new PlaceRequest.Builder().nameToken(token);
   if (!environment.isStandalone()) {
     builder.with(PROFILE, statementContext.selectedProfile());
   }
   return builder;
 }
示例#3
0
 @Override
 protected FinderPath finderPath() {
   return FinderPath.subsystemPath(statementContext.selectedProfile(), ROOT_TEMPLATE.lastValue());
 }