コード例 #1
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;
 }
コード例 #2
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;
 }