src/de/uka/ipd/idaho/goldenGateServer/imp/client/GoldenGateImpClient.java
/**
	 * Schedule processing of a document with a given ID through a batch with a
	 * given name.
	 * @param docId the ID of the document to process
	 * @param batchName the name of the batch to use for processing
	 */
Schedule processing of a document with a given ID through a batch with a
given name.
@param docId the ID of the document to process
@param batchName the name of the batch to use for processing
Schedule processing of a document with a given ID through a batch with a given name . @param docId the ID of the document to process @param batchName the name of the batch to use for processing
public void scheduleBatchProcessing(String docId, String batchName) throws IOException {
		if (!this.authClient.isLoggedIn()) throw new IOException("Not logged in.");
		Connection con = this.authClient.getConnection();
		BufferedWriter bw = con.getWriter();
		bw.write(SCHEDULE_BATCH_PROCESSING);
		bw.newLine();
		bw.write(this.authClient.getSessionID());
		bw.newLine();
		bw.write(docId);
		bw.newLine();
		bw.write(batchName);
		bw.newLine();
		bw.flush();
		try {
			BufferedReader br = con.getReader();
			String error = br.readLine();
			if (!SCHEDULE_BATCH_PROCESSING.equals(error))
				throw new IOException(error);
		}
		finally {
			con.close();
		}
	}
public void scheduleBatchProcessing ( String docId , String batchName ) throws IOException { if ( ! this . authClient . isLoggedIn ( ) ) throw new IOException ( "Not logged in." ) ; Connection con = this . authClient . getConnection ( ) ; BufferedWriter bw = con . getWriter ( ) ; bw . write ( SCHEDULE_BATCH_PROCESSING ) ; bw . newLine ( ) ; bw . write ( this . authClient . getSessionID ( ) ) ; bw . newLine ( ) ; bw . write ( docId ) ; bw . newLine ( ) ; bw . write ( batchName ) ; bw . newLine ( ) ; bw . flush ( ) ; try { BufferedReader br = con . getReader ( ) ; String error = br . readLine ( ) ; if ( ! SCHEDULE_BATCH_PROCESSING . equals ( error ) ) throw new IOException ( error ) ; } finally { con . close ( ) ; } }
Schedule processing of a document with a given ID through a batch with a
 given name.
Schedule processing of a document with a given ID through a batch with a given name .
//	make sure we're logged in and connect to backend //	send request //	get response and check for error message