Interface FileParser

All Superinterfaces:
Object

public interface FileParser extends Object
icegridadmin provides a FileParser object to transform XML files into ApplicationDescriptor objects.
  • Method Details

    • parse

      ApplicationDescriptor parse(String xmlFile, AdminPrx adminProxy, Current current) throws ParseException
      Parses a file.
      Parameters:
      xmlFile - The full path to the file.
      adminProxy - An AdminPrx proxy, used only to retrieve default templates when needed. May be null.
      current - The Current object of the incoming request.
      Returns:
      The application descriptor.
      Throws:
      ParseException - Thrown when an error occurs during parsing.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::FileParser"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.