Class HttpInputPathImpl

java.lang.Object
net.officefloor.web.HttpInputPathImpl
All Implemented Interfaces:
HttpInputPath

public class HttpInputPathImpl extends Object implements HttpInputPath
HttpInputPath implementation.
Author:
Daniel Sagenschneider
  • Constructor Details

  • Method Details

    • isPathParameters

      public boolean isPathParameters()
      ================ HttpInputPath =======================
      Specified by:
      isPathParameters in interface HttpInputPath
      Returns:
      true if the path contains parameters.
    • isMatchPath

      public boolean isMatchPath(String path, int endingPathParameterTerminatingCharacter)
      Description copied from interface: HttpInputPath
      Indicates if the path matches the HttpInput path.
      Specified by:
      isMatchPath in interface HttpInputPath
      Parameters:
      path - Path.
      endingPathParameterTerminatingCharacter - Character value for the Character that terminates the ending path parameter. This is ignored if the last part of the path is static (i.e. only applies for last parameter to know when it terminates the path, e.g. /path/{last}). Should the last parameter consume the remainder of the path, provide -1 to indicate no terminating Character.
      Returns:
      true if the path matches the HttpInput path.
    • createHttpPathFactory

      public <T> HttpPathFactory<T> createHttpPathFactory(Class<T> valuesType) throws HttpException
      Description copied from interface: HttpInputPath
      Creates the HttpPathFactory.
      Specified by:
      createHttpPathFactory in interface HttpInputPath
      Type Parameters:
      T - Value type.
      Parameters:
      valuesType - Type to use for obtaining values to construct the path. Should the path not contain parameters, it may be null.
      Returns:
      HttpPathFactory.
      Throws:
      HttpException - If required path parameters are not available on the values type.